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
GiL6noFs/abcxM/Q1FeP6Ez2WHoKFIs/aQJx7YguqSo=
Received
30.07.2019 22:47:36
Confirmation delay (full node)
10 minutes 29 seconds
Confirmation delay (light node)
12 minutes 32 seconds
Authors
DPYEPM34AUBLZFLCJKKGSJ3R34373IUA
Children
tmi4K3GAIgZdesUbqtQbRXBlKJYPYvnapb0tVijhI6w=
Parents
daCdcYKpBuFN55CBoZnCO3JLwTsavXvJHodzouKRfsc=
s3g6jvAu9tem7lIfP5qBEnDKY5jM6+zdup05rhOXBb4=
Messages
Definition
Address:
76FG5IMJR6XXKAILOLVALHORF654VYLR
Definition:
[ "autonomous agent", { "init": "{ $fee = 4000; $addr = trigger.address; $inp = trigger.output[[asset=base]]; $time_btw_draw = 3600; $buyin = 10000; }", "messages": { "cases": [ { "if": "{ var['Start'] AND var[$addr||var['Start']] AND timestamp > (var['Start']+$time_btw_draw) }", "messages": [ { "init": "{ $num1 = data_feed[[oracles='F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N', feed_name='TOTAL_CAP']]; $num2 = data_feed[[oracles='F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N', feed_name='GBYTE_USD']]; $num3 = $num1 + $num2 + var['Start']+timestamp; $last_lucky = number_from_seed($num3||mc_unit,var['Number']-1); $winner_addr = var[$last_lucky||var['Start']]; $total_pot = $buyin*var['Number']; if($winner_addr == $addr){ $winner_amount = 0; $trigger_amount = $total_pot+ $inp- $fee ; } else{ $winner_amount = $total_pot - $buyin - $fee; $trigger_amount = $buyin + $inp; } }", "app": "payment", "payload": { "asset": "base", "outputs": [ { "if": "{$winner_amount > 0}", "address": "{$winner_addr}", "amount": "{$winner_amount}" }, { "if": "{$trigger_amount > 0}", "address": "{$addr}", "amount": "{$trigger_amount}" } ] } }, { "app": "state", "state": "{ var['Start'] = false; var['Number'] = 0; response['message'] = 'You triggered draw calculation!'; }" } ] }, { "if": "{ $inp == $buyin AND (!var['Start'] OR timestamp < (var['Start']+$time_btw_draw)) }", "messages": [ { "app": "state", "state": "{ if(!var['Start']){ var['Number'] = 0; var['Start'] = timestamp; } $num = var['Number']; var[$num||var['Start']] = $addr; var[$addr||var['Start']] = true; var['Number'] += 1; response['message'] = 'you bought one participation, your number: '|| $num ; }" } ] }, { "messages": [ { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{$addr}", "amount": "{$inp-1000}" } ] } } ] } ] } } ]
Witnesses
2FF7PSL7FYXVU5UIQHCVDTTPUOOG75GX
2GPBEZTAXKWEXMWCTGZALIZDNWS5B3V7
4H2AMKF6YO2IWJ5MYWJS3N7Y2YU2T4Z5
DFVODTYGTS3ILVOQ5MFKJIERH6LGKELP
ERMF7V2RLCPABMX5AMNGUQBAH4CD5TK4
F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N
IOF6PTBDTLSTBS5NWHUSD7I2NHK3BQ2T
O4K4QILG6VPGTYLRAI2RGYRFJZ7N2Q2O
OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD
PA4QK46276MJJD5DBOLIBMYKNNXMUVDP
RJDYXC4YQ4AZKFYTJVCR5GQJF5J6KPRI
WELOXP3EOA75JWNO6S5ZJHOO3EYFKPIR
Technical information
Fees:
2,168
bytes
(353 headers, 1815 payload)
Level:
977184
Witnessed level:
977177
Last ball unit:
s++ocBIBhzGHyE6NplKxV00wqzGdMUqPUzqFEqgbLa0=
Main chain index:
976004
Latest included mc index:
976003
Status:
stable/confirmed/final