Unit ID
eAAHPWphQcHCJK0lZHUROg/XSD1DuqS+DnMAgFW4Kow=
Received
12.07.2021 10:07:14
Confirmation delay (full node)
3 minutes 57 seconds
Confirmation delay (light node)
6 minutes 39 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ $nom_AA = 'Emissions'; //$_Registre = '5WVBJQHTEP54AEYUJGTQKWTXTXZSJQWA'; $_Registre = trigger.data._Registre; // * només x tests $versions_registre = var[ $_Registre ][ 'versions' ]; $unitat = trigger.output[[ asset != base ]].asset; $qt = trigger.output[[ asset = $unitat ]]; // Retorna una dada del Registre $__dada = $refdada => data_feed[[ oracles = $versions_registre, feed_name = $refdada, ifnone = '' ]]; //$_Portal = $__dada( '_Portal' ); $_Portal = trigger.address; // * només x tests if ( $_Portal != trigger.address ) bounce( 'Portal no reconegut' ); $args = trigger.data; $proces = $args.proces; $idgeto = $args.idgeto; }", "messages": { "cases": [ { "if": "{ $proces == "emissio" AND $unitat != 'base' }", "messages": [ { "app": "payment", "payload": { "asset": "{ $idgeto }", "outputs": [ { "address": "{ $args._FOP }", "amount": "{ $args.total_emissio }" } ] } }, { "app": "state", "state": "{ response[ 'Romanent en ' || $args.geto ] = balance[ $idgeto ]; }" } ] }, { "if": "{ $proces == 'configuracio' }", "messages": [ { "app": "state", "state": "{ $geto = $args.geto; $resp_unit = $args.resp_unit; var[ 'geto_' || $resp_unit ] = $geto; var[ $geto || '_id' ] = $resp_unit; response[ 'Ref' ] = $geto; response[ 'Id' ] = $resp_unit; response[ 'Qt' ] = $qt; response[ 'Unitat ' ] = $unitat; }" } ] }, { "if": "{ $proces == "emissio" AND $unitat == 'base' }", "messages": [ { "app": "state", "state": "{ response[ 'Romanent en bytes' ] = balance[ base ] || ' bytes'; }" } ] } ] } } ]
Technical information
Fees:
2,674 bytes
(452 headers, 2222 payload)
Level:2081886
Witnessed level:2081877
Main chain index:2073577
Latest included mc index:2073576
Status:stable/confirmed/final