Unit ID
C4sxExk3NNR07LHKz116ixG5GhbZ49PWNVmgfQTHwpA=
Received
29.09.2019 22:38:18
Confirmation delay (full node)
5 minutes 39 seconds
Confirmation delay (light node)
8 minutes 1 second
Messages
Definition
Definition: [ "autonomous agent", { "init": "{\r $fee = 584;\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": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{trigger.address}", "amount": "{trigger.output[[asset=base]]-$fee-60}" } ] } }, { "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]]-$fee}" } ] } }, { "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]]-$fee}" } ] } }, { "app": "state", "state": "{ \r response['message'] = 'sent dummy asset in exchange for bytes';\r }" } ] } ] } } ]
Technical information
Fees:
1,404 bytes
(353 headers, 1051 payload)
Level:1086213
Witnessed level:1086206
Main chain index:1084974
Latest included mc index:1084973
Status:stable/confirmed/final