Unit ID
EY31wR80z3bsWxP8q7agATUZXR3YLtu5moP7Dmb9svA=
Received
06.05.2021 21:21:23
Confirmation delay (full node)
7 minutes 27 seconds
Confirmation delay (light node)
8 minutes 14 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ if(trigger.output[[asset!=base]].asset != 'none'){ $asset = trigger.output[[asset!=base]].asset; if($asset and $asset == 'ambiguous') bounce('Only 1 asset per tx'); } $curveAA = 'TGEKFP4PFQT43CGUNZSM4GHRMNBWPAVE'; $deAA = var[$curveAA]['decision_engine_aa']; $fundAA = var[$curveAA]['fund_aa']; $myaddr = 'QF3NOVWHY2ZBVZZ2QHCUW7IPYXKLGIGG'; if(trigger.initial_address != $myaddr) bounce(''); }", "messages": { "cases": [ { "if": "{trigger.data.action == 'withdraw'}", "messages": [ { "app": "payment", "payload": { "asset": "{trigger.data.asset otherwise 'base'}", "outputs": [ { "address": "{trigger.address}" } ] } } ] }, { "if": "{trigger.address == $myaddr}", "messages": [ { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{$deAA}", "amount": 400000000000 } ] } } ] }, { "if": "{trigger.address == $fundAA AND !var['sfass']}", "messages": [ { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{$curveAA}", "amount": 400000000000 } ] } }, { "app": "state", "state": "{ var['sfass'] = $asset; }" } ] }, { "if": "{trigger.address == $curveAA and !var['igb']}", "messages": [ { "app": "payment", "payload": { "asset": "{var['sfass']}", "outputs": [ { "address": "{$deAA}" } ] } }, { "app": "state", "state": "{ var['igb'] = $asset; }" } ] }, { "if": "{trigger.address == $fundAA}", "messages": [ { "app": "data", "payload": { "to": "{trigger.initial_address}" } }, { "app": "payment", "payload": { "asset": "{var['igb']}", "outputs": [ { "address": "{$curveAA}" } ] } }, { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{trigger.initial_address}", "amount": "{balance[base]-10000}" } ] } } ] } ] } } ]
Technical information
Fees:
2,288 bytes
(451 headers, 1837 payload)
Level:7643366
Witnessed level:7643357
Main chain index:7329245
Latest included mc index:7329244
Status:stable/confirmed/final