Unit ID
E5zXZS5S9h+pgtLMtPyTXgvCA8HYPHEvEVX3skp1tHQ=
Received
18.11.2020 19:12:43
Confirmation delay (full node)
4 minutes 11 seconds
Confirmation delay (light node)
5 minutes 18 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ $nom_AA = 'Portal'; $versio = '0.3'; $AUT_0 = 'C4KIJSUWVM7BGWTLXKX3K4PNRXV7OY4W'; $adr__ = trigger.address; $args = trigger.data; $unitat = trigger.output[[ asset != base ]].asset; $qt = trigger.output[[ asset = $unitat ]]; $ref = trigger.data.ref; $val = trigger.data.val; $AUT_A = var[ '_AUT_A' ]; $AUT_B = var[ '_AUT_B' ]; $AUT_C = var[ '_AUT_C' ]; if ( ! $args ) { bounce ( $nom_AA || ': Cal proporcionar els arguments' ); } if ( !! $ref ) { if ( $adr__ != $AUT_0 ) { if ( ! $AUT_A OR $adr__ != $AUT_A ) { if ( ! $AUT_B OR $adr__ != $AUT_B ) { if ( ! $AUT_C OR $adr__ != $AUT_C ) { bounce ( 'No autoritzada' ); } } } } $txt_comu = 'AA_Portal ::> Cal proporcionar el valor de: '; if ( ! $ref ) { bounce ( $txt_comu || 'ref' ); } if ( ! $val ) { bounce ( $txt_comu || 'val' ); } } else { $args.AA_PF = var[ '_AA_PF' ]; } }", "messages": [ { "app": "data", "payload": "{ $args }" }, { "if": "{ ! $ref }", "app": "payment", "payload": { "asset": "{ $unitat }", "outputs": [ { "address": "{ var[ '_AA_Acces' ] }", "amount": "{ $qt }" } ] } }, { "if": "{ !! $ref }", "app": "state", "state": "{ var[ $ref ] = $val; response['ref'] = $ref; response['val'] = $val; }" } ] } ]
Technical information
Fees:
2,205 bytes
(452 headers, 1753 payload)
Level:1759142
Witnessed level:1759135
Main chain index:1751423
Latest included mc index:1751422
Status:stable/confirmed/final