Unit ID
A1JG3QwZW2fIO13ctZQj990lG+nvJXcF653MPVKqOBo=
Received
29.09.2019 21:58:45
Confirmation delay (full node)
5 minutes 0 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{\r if(var['asset']){\r if(trigger.output[[asset!=base]].asset != 'none')\r $asset = trigger.output[[asset!=base]].asset;\r if($asset AND $asset == 'ambiguous') bounce('Only 1 asset per tx');\r if($asset AND $asset != var['asset']) bounce('You must send '||var['asset']);\r }\r }", "messages": { "cases": [ { "if": "{!var['asset']}", "messages": [ { "app": "asset", "payload": { "is_private": false, "is_transferrable": true, "auto_destroy": true, "fixed_denominations": false, "issued_by_definer_only": true, "cosigned_by_definer": false, "spender_attested": false } }, { "app": "state", "state": "{ var['asset'] = response_unit; }" } ] }, { "if": "{$asset}", "messages": [ { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{trigger.address}", "amount": "{trigger.output[[asset=base]]+trigger.output[[asset!=base]]}" } ] } }, { "app": "state", "state": "{ \r response['message'] = 'sent bytes in exchange for dummy asset';\r }" } ] }, { "messages": [ { "app": "payment", "payload": { "asset": "{var['asset']}", "outputs": [ { "address": "{trigger.address}", "amount": "{trigger.output[[asset=base]]}" } ] } }, { "app": "state", "state": "{ \r response['message'] = 'sent dummy asset in exchange for bytes';\r }" } ] } ] } } ]
Technical information
Fees:
1,313 bytes
(353 headers, 960 payload)
Level:1086112
Witnessed level:1086105
Main chain index:1084873
Latest included mc index:1084872
Status:stable/confirmed/final