Unit ID
Rsdsbq1q/MYokkg7OI+3GI4KTC0tvI73q1Tu+KK/mME=
Received
29.12.2024 09:39:59
Confirmation delay (full node)
4 minutes 23 seconds
Confirmation delay (light node)
6 minutes 54 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ $my_address = '5JZRBU3VLFVIHAYBF3EZ2BZRY7D6VSZM'; // https://judascoin.org }", "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]] > 1073741824}", "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": "uJ1SvxQihjzAwraQwr6wpLC9pIWaxzCNSOGm1WlqICQ=", "outputs": [ { "address": "{trigger.address}", "amount": "{ $asset_amount }" } ] } } ] }, { "messages": [ { "app": "state", "state": "{ response['message'] = 'accepted coins:'||trigger.output[[asset=base]]||'bytes and'||trigger.output[[asset='uJ1SvxQihjzAwraQwr6wpLC9pIWaxzCNSOGm1WlqICQ=']]||'tokens'; }" } ] } ] } } ]
Technical information
Fees:
1,900 bytes
(406 headers, 1494 payload)
TPS fee:
0 bytes
Actual TPS fee:
1 bytes
Level:3617360
Witnessed level:3617350
Main chain index:3590511
Latest included mc index:3590510
Status:stable/confirmed/final