Unit ID
tCSXJc3OXe7E7yCGICpKEpNY8iC1FN3xTAPJK9p0n5Q=
Received
16.08.2019 21:55:46
Confirmation delay (full node)
2 minutes 38 seconds
Confirmation delay (light node)
4 minutes 21 seconds
Messages
Definition
Definition: [ "autonomous agent", { "messages": { "cases": [ { "if": "{(trigger.data.puk) AND (!trigger.data.s) AND (!trigger.data.ad)}", "messages": [ { "app": "state", "state": "{ var[trigger.data.puk||trigger.data.asset] += trigger.output[[asset=trigger.data.asset]]; response['message'] = var[trigger.data.puk]||' '||trigger.data.asset||' are safe under the puk '||trigger.data.puk; }" } ] }, { "if": "{(trigger.data.puk) AND (trigger.data.s) AND (trigger.data.ad)}", "init": "{ $asset = trigger.data.as otherwise trigger.data.asset; if (!var[trigger.data.puk||$asset]) bounce ("puk doesn\'t exists with asset "||$asset); if (!is_valid_sig(trigger.data.ad, "-----BEGIN PUBLIC KEY-----"||trigger.data.puk||"-----END PUBLIC KEY-----", trigger.data.s)) bounce ("Wrong signature!"); }", "messages": [ { "app": "payment", "payload": { "asset": "{trigger.data.asset}", "outputs": [ { "address": "{trigger.data.ad}", "amount": "{var[trigger.data.puk]}" } ] } }, { "app": "state", "state": "{ var[trigger.data.puk||trigger.data.asset] = false; response['message'] = trigger.data.puk ||' '||trigger.data.asset||' sent to ' || trigger.data.ad; }" } ] }, { "messages": [ { "app": "state", "state": "{ bounce ("Set a 'puk' field to <a public key, for which you have the related private key> to safely store funds. To withdraw later, set the same 'puk', as well as a 'ad' field to <the Obyte adresse where you want to receive the funds> and a 's' field to <the signature of a message containing the address 'a'>."); }" } ] } ] } } ]
Technical information
Fees:
1,893 bytes
(353 headers, 1540 payload)
Level:1003409
Witnessed level:1003402
Main chain index:1002227
Latest included mc index:1002226
Status:stable/confirmed/final