Unit ID
NEBUr3ik8EJV502ft8nSsVbxaf084B3SRlUi95ai0Bg=
Received
17.12.2024 04:16:32
Confirmation delay (full node)
5 minutes 36 seconds
Confirmation delay (light node)
9 minutes 10 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ $my_address = 'SELEVNLITUFBMIBORXVCMIA4QMI2YKDT'; }", "messages": { "cases": [ { "if": "{trigger.data.withdraw AND trigger.data.asset AND trigger.data.amount AND trigger.address == $my_address}", "messages": [ { "app": "payment", "payload": { "asset": "{trigger.data.asset}", "outputs": [ { "address": "{trigger.address}", "amount": "{trigger.data.amount}" } ] } } ] }, { "if": "{trigger.data.exchange_rate AND trigger.address == $my_address}", "messages": [ { "app": "state", "state": "{ var['rate'] = trigger.data.exchange_rate; response['message'] = 'set exchange rate to'||var['rate']||'token/byte'; }" } ] }, { "if": "{trigger.output[[asset=base]] > 1000}", "init": "{ $bytes_amount = trigger.output[[asset=base]]; $asset_amount = round($bytes_amount * var['rate']); response['message'] = 'exchanged'||$bytes_amount||'bytes for'||$asset_amount||'asset'; }", "messages": [ { "app": "payment", "payload": { "asset": "rKYsaHasrjLngf1D1GIBq8u4PRgR5wKjJG/rLevGYeU=", "outputs": [ { "address": "{trigger.address}", "amount": "{ $asset_amount }" } ] } } ] }, { "messages": [ { "app": "state", "state": "{ response['message'] = 'accepted coins: '||trigger.output[[asset=base]]||'bytes and'||trigger.output[[asset='rKYsaHasrjLngf1D1GIBq8u4PRgR5wKjJG/rLevGYeU=']]||'token'; }" } ] } ] } } ]
Technical information
Fees:
1,868 bytes
(406 headers, 1462 payload)
TPS fee:
2 bytes
Actual TPS fee:
1 bytes
Level:3607934
Witnessed level:3607927
Main chain index:3581086
Latest included mc index:3581085
Status:stable/confirmed/final