Unit ID
IHRqpBx+b1POZLq1SFMZLSkodB62nQ09TW39XQYeYt0=
Received
29.05.2020 21:44:37
Confirmation delay (full node)
17 minutes 23 seconds
Confirmation delay (light node)
22 minutes 15 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ $hold = 1640995200; if (trigger.output[[asset!=base]].asset != 'none') bounce('only bytes'); $base_key = 'balance_'||trigger.address||'_'||'base'; }", "messages": { "cases": [ { "if": "{ trigger.data.withdraw }", "init": "{ if($hold > timestamp) bounce('no one can withdraw until '||timestamp_to_string($hold)); if(!var[$base_key]) bounce('nothing to withdraw'); }", "messages": [ { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{trigger.address}", "amount": "{var[$base_key]-1000}" } ] } }, { "app": "state", "state": "{ var[$base_key] = false; }" } ] }, { "messages": [ { "app": "state", "state": "{ var[$base_key] = var[$base_key] + trigger.output[[asset=base]]; response['message'] = 'accepted '||trigger.output[[asset=base]]||' bytes for holding until '||timestamp_to_string($hold); }" } ] } ] } } ]
Technical information
Fees:
1,397 bytes
(352 headers, 1045 payload)
Level:5576285
Witnessed level:5576274
Main chain index:5433074
Latest included mc index:5433073
Status:stable/confirmed/final