Unit ID
pO6LSc5eSTEyD7YfE3hHbCwfpvv5RyUKiFS4u3Q1pKI=
Received
04.09.2020 13:07:52
Confirmation delay (full node)
2 minutes 12 seconds
Confirmation delay (light node)
4 minutes 14 seconds
Messages
Definition
Definition: [ "autonomous agent", { "bounce_fees": { "base": 10000 }, "init": "{ $this = { dust_collector : "B2UMBICLZSBVDHRC7BYM6BBU4AQEXL2F", htlc_base_aa : "GXH5UX3ILVMM66HGDXD4RZCAX6YK4R4I" }; }", "messages": { "cases": [ { "if": "{ !!trigger.data.destination_address and !!trigger.data.hash_of_secret}", "messages": [ { "app": "definition", "payload": { "definition": [ "autonomous agent", { "base_aa": "{$this.htlc_base_aa}", "params": { "destination_address": "{trigger.data.destination_address}", "hash_of_secret": "{trigger.data.hash_of_secret}", "amount": "{trigger.data.amount otherwise 0}", "asset_id": "{trigger.data.asset_id otherwise "base"}", "deadline": "{timestamp+(json_parse(trigger.data.duration_in_hours otherwise 12)*60*60)}" } } ] } }, { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{trigger.address}", "amount": "{balance[base]-2000}" } ] } }, { "app": "state", "state": "{ response['message'] = "A lock box (HTLC) as been created for '"||trigger.data.destination_address||"', check the AA address in the Response unit"; }" } ] }, { "messages": [ { "app": "state", "state": "{ bounce("I need:'destination_address' and 'hash_of_secret' and optional 'amount', 'asset_id' and 'duration_in_hours'."); }" } ] } ] } } ]
Technical information
Fees:
1,894 bytes
(452 headers, 1442 payload)
Level:1595551
Witnessed level:1595544
Main chain index:1588310
Latest included mc index:1588309
Status:stable/confirmed/final