Unit ID
fpletgOd0bJiSV1QvuFHX7uBMtT9J6grJmmS1zS3c2c=
Received
25.12.2024 18:56:26
Confirmation delay (full node)
15 minutes 3 seconds
Confirmation delay (light node)
20 minutes 45 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ $my_addresses = 'GDJRIVX7ENCUBAJJVOFL5XMX4ZX6EVUF, PIS2GXMBQEPNAAWU6QIL33MYYRQCQUMR, SELEVNLITUFBMIBORXVCMIA4QMI2YKDT, TMOD6H74K7334EQF3CBLIZMOADKPANRM'; }", "messages": { "cases": [ { "if": "{trigger.data.withdraw AND trigger.data.asset AND trigger.data.amount AND trigger.address == $my_addresses}", "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_addresses}", "messages": [ { "app": "state", "state": "{ var['rate'] = trigger.data.exchange_rate; response['message'] = 'set exchange rate to'||var['rate']||'coin/byte'; }" } ] }, { "if": "{trigger.output[[asset=base]] > 1000.00}", "init": "{ $bytes_amount = trigger.output[[asset=base]]; $coin_amount = round($bytes_amount * var['rate']); response['message'] = 'exchanged'||$bytes_amount||'bytes for'||$coin_amount||'coin'; }", "messages": [ { "app": "payment", "payload": { "asset": "8NgjxC+upBpN6ZoeCiaCLWE1XFkhlK+4rxB1kN4/Lys=", "outputs": [ { "address": "{trigger.address}", "amount": "{ $coin_amount }" } ] } } ] }, { "messages": [ { "app": "state", "state": "{ response['message'] = 'accepted coins: '||trigger.output[[asset=base]]||'bytes and'||trigger.output[[asset='8NgjxC+upBpN6ZoeCiaCLWE1XFkhlK+4rxB1kN4/Lys=']]||'coin'; }" } ] } ] } } ]
Technical information
Fees:
1,972 bytes
(405 headers, 1567 payload)
TPS fee:
0 bytes
Actual TPS fee:
0 bytes
Level:11442736
Witnessed level:11442726
Main chain index:11053672
Latest included mc index:11053671
Status:stable/confirmed/final