Unit ID
3ioVy474cWCgMTwGaT3fa6OCPS/nG2Kmjmpcjj1y7tA=
Received
25.12.2024 08:11:19
Confirmation delay (full node)
4 minutes 58 seconds
Confirmation delay (light node)
7 minutes 46 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ $my_address = '6LNFIBKMBOCUQEPL2PUBKLG2I7DNR5EN'; }", "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']||' tokens/byte'; }" } ] }, { "if": "{trigger.output[[asset=base]] > 100000}", "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": "C8Ln+Wyl2PXdNIaljk+UwriFWfMiCcyMfy7oWA7IUTw=", "outputs": [ { "address": "{trigger.address}", "amount": "{ $asset_amount }" } ] } } ] }, { "messages": [ { "app": "state", "state": "{ response['message'] = 'accepted coins: '||trigger.output[[asset=base]]||' bytes and '||trigger.output[[asset='C8Ln+Wyl2PXdNIaljk+UwriFWfMiCcyMfy7oWA7IUTw=']]||' tokens '; }" } ] } ] } } ]
Technical information
Fees:
1,883 bytes
(406 headers, 1477 payload)
TPS fee:
0 bytes
Actual TPS fee:
0 bytes
Level:3614327
Witnessed level:3614319
Main chain index:3587479
Latest included mc index:3587478
Status:stable/confirmed/final