Unit ID
jC67qv6wr7bR/SvSi68cl0T071HJY2th0g4QtslZQK4=
Received
16.11.2021 15:06:52
Confirmation delay (full node)
6 minutes 5 seconds
Confirmation delay (light node)
9 minutes 3 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ $non_bytes_asset = trigger.output[[asset!=base]].asset; if ($non_bytes_asset == 'ambiguous') bounce('ambiguous asset'); $asset = $non_bytes_asset == 'none' ? 'base' : $non_bytes_asset; $claim_num = trigger.data.claim_num; $step1 = !!$claim_num; // from the bridge if ($step1){ $data = trigger.data.data; $data_to_forward = $data.data1; } else if (var['initial_unit'] AND var['initial_unit'] == trigger.initial_unit AND var['recipient']){ // response from the AA called in step 1 $step2 = true; $recipient = var['recipient']; $data_to_forward = var['data2']; } }", "messages": [ { "if": "{$step1 OR $step2}", "app": "payment", "payload": { "asset": "{$asset}", "outputs": [ { "address": "{$step1 ? $data.aa : $recipient}", "amount": "{trigger.output[[asset=$asset]]}" } ] } }, { "if": "{$data_to_forward}", "app": "data", "payload": "{ $data_to_forward }" }, { "app": "state", "state": "{ if ($step1){ var['initial_unit'] = trigger.initial_unit; var['recipient'] = $data.recipient; var['data2'] = $data.data2; response['message'] = 'forwarded 1'; } else if ($step2){ var['initial_unit'] = false; var['recipient'] = false; var['data2'] = false; response['message'] = 'forwarded 2'; } else response['message'] ='deposited'; }" } ] } ]
Technical information
Fees:
2,098 bytes
(452 headers, 1646 payload)
Level:2448022
Witnessed level:2448015
Main chain index:2431230
Latest included mc index:2431229
Status:stable/confirmed/final