Unit ID
uGxB4Wd9L8O4eecNDX8FvXpwPRVomL24/GfxmFMXIxE=
Received
22.08.2019 16:45:49
Confirmation delay (full node)
2 minutes 47 seconds
Confirmation delay (light node)
4 minutes 19 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ $aa_name = "DANAA"; // Dynamic Asset Names Autonomous Agent; $owner = "O7NYCFUL5XIJTYE3O4MKGMGMTN6ATQAJ"; // could withdraw the dust is calculable. $asset_unit_id = trigger.data.unit_id otherwise false; $asset_new_name = trigger.data.new_name otherwise false; $asset_author = trigger.address; }", "messages": { "cases": [ { "if": "{ $asset_unit_id and $asset_new_name }", "init": "{ // check if (var[$asset_unit_id]) if (trigger.address != var[$asset_unit_id||"_author"]) bounce ("Already registered and not by you!"); }", "messages": [ { "app": "payment", "payload": { "asset": "{'base'}", "outputs": [ { "address": "{$asset_author}", "amount": "{trigger.output[[asset=base]] - 1000}" } ] } }, { "app": "state", "state": "{ var[$asset_unit_id] = $asset_new_name; var[$asset_unit_id||"_author"] = $asset_author; }" } ] }, { "messages": [ { "app": "state", "state": "{ bounce ("Specify a 'unit_id' and a 'new_name'"); }" } ] } ] } } ]
Technical information
Fees:
1,402 bytes
(353 headers, 1049 payload)
Level:1019116
Witnessed level:1019108
Main chain index:1017930
Latest included mc index:1017929
Status:stable/confirmed/final