Transfers view
UTXO view
Obyte.org
Unit Legend
- not on main chain, not stable
- main chain, not stable
- bad unit
- not on main chain, stable/confirmed/final
- main chain, stable/confirmed/final
- not on main chain, selected
- main chain, selected
Close
Close
Unit ID
h6EAqHikSikznl5GGNxRWVw71usWjrL/d1AQvKGYQnk=
Received
21.09.2019 18:21:45
Confirmation delay (full node)
2 minutes 51 seconds
Confirmation delay (light node)
6 minutes 4 seconds
Authors
DPYEPM34AUBLZFLCJKKGSJ3R34373IUA
Children
+gozId2zU9EosAJbEGl26JPr0PqpSkpXGzRvio16khU=
Parents
loxN8wl3Q/DvrOg4WzsBeqGBHZYlLbFPd/b7hr7vhho=
Messages
Definition
Address:
VKZ2K5PCTLXE3SWTFNDDGSKGJ3PZIBM2
Definition:
[ "autonomous agent", { "init": "{ // min bounce fees for byes are 10,000 bytes $now = timestamp ; $min_bid_amnt = 100000; // 100,000 is about £0.02 to be increaded to £0.50 $bid_amnt = trigger.output[[asset=base]]; $bid_status = ($bid_amnt >= $min_bid_amnt) otherwise false; if ($bid_status == false) bounce('Your bid is too small.'); $stack_status = var['stack_status'] otherwise 'not started'; $duration = 300; $fee = 10000; // 10,000 for now to be replaced with 1% of the pot $seed_amnt = 10000; $commission_address = 'B7KF2F5AP6BZLXOE2EGHH6BKZWVNIKWF'; //testnet $commission_payout_threshold = 10000; }", "messages": [ { "app": "payment", "if": "{$bid_status == true AND $stack_status == 'running' AND $now > var['period_end']}", "payload": { "asset": "base", "outputs": [ { "address": "{ var['leader'] }", "amount": "{ var['stack_amnt'] }" } ] } }, { "app": "payment", "if": "{ var['commission'] >= $commission_payout_threshold }", "payload": { "asset": "base", "outputs": [ { "address": "{ $commission_address }", "amount": "{ var['commission'] }" } ] } }, { "app": "state", "state": "{ // game not started: valid bid & game not started - initilise game with 1st bid if ($bid_status AND $stack_status == 'not started') { var['stack_amnt'] = $bid_amnt - $fee; var['stack_status'] = '1st bid made'; var['leader'] = trigger.initial_address; } // case: 2nd valid bid is made - start timer if ($bid_status == true AND $stack_status == '1st bid made') { var['stack_amnt'] += ($bid_amnt - $fee); var['stack_status'] = 'running'; var['leader'] = trigger.initial_address; var['period_end'] = timestamp + $duration; } // case: game is running if ($bid_status == true AND $stack_status == 'running' AND $now <= var['period_end']) { var['stack_amnt'] += ($bid_amnt - $fee); var['period_end'] = timestamp + $duration; var['leader'] = trigger.initial_address; } // case: game finished // initilise new game with latest bid if ($bid_status == true AND $stack_status == 'running' AND $now > var['period_end']) { var['commission'] = balance[base] - $seed_amnt; var['stack_amnt'] = $bid_amnt - $fee; var['stack_status'] = '1st bid made'; var['leader'] = trigger.initial_address; } }" } ] } ]
Witnesses
2FF7PSL7FYXVU5UIQHCVDTTPUOOG75GX
2GPBEZTAXKWEXMWCTGZALIZDNWS5B3V7
4H2AMKF6YO2IWJ5MYWJS3N7Y2YU2T4Z5
DFVODTYGTS3ILVOQ5MFKJIERH6LGKELP
ERMF7V2RLCPABMX5AMNGUQBAH4CD5TK4
F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N
IOF6PTBDTLSTBS5NWHUSD7I2NHK3BQ2T
O4K4QILG6VPGTYLRAI2RGYRFJZ7N2Q2O
OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD
PA4QK46276MJJD5DBOLIBMYKNNXMUVDP
RJDYXC4YQ4AZKFYTJVCR5GQJF5J6KPRI
WELOXP3EOA75JWNO6S5ZJHOO3EYFKPIR
Technical information
Fees:
2,871
bytes
(353 headers, 2518 payload)
Level:
1069582
Witnessed level:
1069573
Last ball unit:
KS+mO3teAn7NoUqgDiIcGnPuhHFtX4v6/hUkt38QNVs=
Main chain index:
1068347
Latest included mc index:
1068346
Status:
stable/confirmed/final