Unit ID
OrmAU9rtbBUc4YFqNaIxtdWS7bu2PD96qARBa6DpNNU=
Received
22.08.2019 22:59:10
Confirmation delay (full node)
6 minutes 21 seconds
Confirmation delay (light node)
9 minutes 11 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ $aa_name = "DANAA"; // Dynamic Asset Names Autonomous Agent; $owner = "O7NYCFUL5XIJTYE3O4MKGMGMTN6ATQAJ"; // could withdraw the dust is calculable. $unit_id = trigger.data.unit_id otherwise false; $shortName = trigger.data.shortName otherwise false; $issuer = trigger.data.issuer otherwise trigger.address; $ticker = trigger.data.ticker otherwise false; $decimals = trigger.data.decimal otherwise false; $name = trigger.data.decimal otherwise $shortName||" by "||$author; $description = trigger.data.description otherwise "Asset called "||$shortName||" issued by "||$issuer||", with "||$decimals||" decimals available. Its ticker is "||$ticker||" and it is defined by the unit '"||$unit_id||"'."; }", "messages": { "cases": [ { "if": "{ $unit_id and $shortName and $ticker and $decimals }", "init": "{ // check if (var[$unit_id]) if (trigger.address != var[$unit_id||"_author"]) bounce ("Already registered and not by you!"); }", "messages": [ { "app": "payment", "payload": { "asset": "{'base'}", "outputs": [ { "address": "{$author}", "amount": "{trigger.output[[asset=base]] - 1000}" } ] } }, { "app": "state", "state": "{ var[$unit_id||"_shortName"] = $shortName; var[$unit_id||"_issuer"] = $author; var[$unit_id||"_name"] = $name; var[$unit_id||"_ticker"] = $ticker; var[$unit_id||"_decimals"] = $decimals; var[$unit_id||"_description"] = $description; }" } ] }, { "messages": [ { "app": "state", "state": "{ bounce ("Specify the following fields: 'unit_id', 'shotname', 'ticker', 'decimal' and optionaly 'name, 'issuer' and description' that can be by defualt build from the first fields'."); }" } ] } ] } } ]
Technical information
Fees:
2,241 bytes
(353 headers, 1888 payload)
Level:1019768
Witnessed level:1019760
Main chain index:1018582
Latest included mc index:1018581
Status:stable/confirmed/final