Unit ID
gBJpLTAhNcYQvwpbiUjj2Yxsw7wrDaDWeDCTgkpcyfY=
Received
17.12.2024 04:14:50
Confirmation delay (full node)
4 minutes 2 seconds
Confirmation delay (light node)
7 minutes 18 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,869 bytes
(406 headers, 1463 payload)
TPS fee:
0 bytes
Actual TPS fee:
0 bytes
Level:3607926
Witnessed level:3607919
Main chain index:3581078
Latest included mc index:3581077
Status:stable/confirmed/final