Unit ID
ZIsW+i5pdsNCb1xx9yh35cHFYeoepBANw/jkxRQwsnY=
Received
09.05.2025 07:27:21
Confirmation delay (full node)
22 minutes 35 seconds
Confirmation delay (light node)
26 minutes 15 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ // Define your initial parameters $asset_id = "WWW"; // The ID of the asset you are selling $exchange_rate = 1/10000; // Exchange rate: 1 units of the asset = 10000 bytes $min_payment = 10000; // Minimum payment in bytes for a transaction (10000 bytes) }", "messages": { "cases": [ { "if": "{trigger.output[[asset=base]] >= $min_payment}", "init": "{ $received_bytes = trigger.output[[asset=base]]; // Amount received in bytes $asset_amount = floor($received_bytes * $exchange_rate); // Convert bytes to asset units response['message'] = 'Received' || $received_bytes || 'bytes. Sending' || $asset_amount || ' units of the asset.'; }", "messages": [ { "app": "payment", "payload": { "asset": "{$asset_id}", "outputs": [ { "address": "{trigger.address}", "amount": "{$asset_amount}" } ] } } ] }, { "if": "{trigger.output[[asset=base]] < $min_payment}", "messages": [ { "app": "state", "state": "{ response['error'] = 'Minimum payment is ' || $min_payment || ' bytes.'; }" } ] } ] } } ]
Technical information
Fees:
1,699 bytes
(405 headers, 1294 payload)
TPS fee:
0 bytes
Actual TPS fee:
0 bytes
Level:11718166
Witnessed level:11718157
Main chain index:11326042
Latest included mc index:11326041
Status:stable/confirmed/final