Unit ID
UH872aDdXVQ97P0uTOczsKmxKsOU/XXnKIpSH+lVKE4=
Received
11.09.2019 17:45:18
Confirmation delay (full node)
5 minutes 28 seconds
Confirmation delay (light node)
7 minutes 45 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ $addr = trigger.address; if(!var[$addr]['owner']) bounce("Owner not set"); if(!var[$addr]['name']) bounce("Name not set"); $name = var[$addr]['name']; $ownerAddr = var[$addr]['owner']; if($ownerAddr != trigger.initial_address) bounce('Bad guy detected, you can s*** m* d*** piece of s***'); if(var[$name]) bounce('Name already registered'); if(var['r'||$addr]) bounce('AA already registered'); }", "messages": { "cases": [ { "messages": [ { "app": "attestation", "payload": { "address": "{$addr}", "profile": { "username": "{$name}" } } }, { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{trigger.initial_address}", "amount": "{trigger.output[[asset=base]] - 1000}" } ] } }, { "app": "state", "state": "{ var[$name] = $addr; var[$ownerAddr] = $addr; var['r'||$addr] = true; response['message'] = $name || ' is now a shortcut to ' || $addr ||'. Please wait until attestation unit stabilizes before usage.'; response['usage'] = '1. Set '||this_address||' as username attestor in a wallet. 2. Now you can send funds to @' || $name ||' in that wallet. 3. Enjoy!'; }" } ] } ] } } ]
Technical information
Fees:
1,539 bytes
(353 headers, 1186 payload)
Level:1055912
Witnessed level:1055904
Main chain index:1054685
Latest included mc index:1054684
Status:stable/confirmed/final