Unit ID
GcywQOhpXU9+RHTrsRpVmFexIZirQtVzewffQCowffM=
Received
02.09.2024 16:09:13
Confirmation delay (full node)
12 minutes 7 seconds
Messages
Definition
Definition: [ "autonomous agent", { "messages": { "cases": [ { "if": "{ $define_usd = trigger.data.define_usd AND !var['usd_asset']; $define_byte = trigger.data.define_byte AND !var['byte_asset']; if ($define_usd AND $define_byte) bounce("can't define both assets at the same time"); $define_usd OR $define_byte }", "messages": [ { "app": "asset", "payload": { "is_private": false, "is_transferrable": false, "auto_destroy": false, "fixed_denominations": false, "issued_by_definer_only": false, "cosigned_by_definer": false, "spender_attested": false } }, { "app": "state", "state": "{ $asset = $define_usd ? 'usd_asset' : 'byte_asset'; var[$asset] = response_unit; response[$asset] = response_unit; }" } ] }, { "if": "{trigger.output[[asset=base]] >= 1e5 AND var['usd_asset'] AND var['byte_asset']}", "messages": [ { "app": "payment", "payload": { "asset": "{var['usd_asset']}", "outputs": [ { "address": "{trigger.address}", "amount": "{ trigger.output[[asset=base]] }" } ] } }, { "app": "payment", "payload": { "asset": "{var['byte_asset']}", "outputs": [ { "address": "{trigger.address}", "amount": "{ trigger.output[[asset=base]] }" } ] } } ] } ] } } ]
Technical information
Fees:
1,770 bytes
(451 headers, 1319 payload)
Level:11221759
Witnessed level:11221741
Main chain index:10834464
Latest included mc index:10834463
Status:stable/confirmed/final