Unit ID
2p757GTZ/V/4/BiVTz6u1xhMWWUxuZft+dhC5B79O2E=
Received
30.10.2020 17:56:38
Confirmation delay (full node)
3 minutes 38 seconds
Confirmation delay (light node)
6 minutes 32 seconds
Messages
Definition
Definition: [ "autonomous agent", { "bounce_fees": { "base": 10000 }, "init": "{\r \r $nom_AA = 'Activacions';\r $versio = '3';\r \r $AA_PF = trigger.data.AA_PF;\r $args = trigger.data;\r $adr__ = trigger.initial_address;\r $qt = trigger.output[[asset=base]] - 10000; //bounce-fees \r \r \r // ............................................ Adreces i Constants\r \r $unitat = var[ $AA_PF ][ 'unitat' ];\r $AA_Transfers = var[ $AA_PF ][ '_AA_Transfers' ];\r $adr_FOP = var[ $AA_PF ][ '_FOP' ];\r $adr_FPre = var[ $AA_PF ][ '_FPre' ];\r $import_activacio = var[ $AA_PF ][ 'Import_Activacio' ]; \r \r \r // ............................................ Comprovacions, Variables i Valors Condicionats\r \r // Comprova q adr no ha estat registrada anteriorment\r if ( !! var[ 'activacio_' || $adr__ ] ) { bounce ( $nom_AA || ': Adreça ja activa' ); }\r \r // Comprova q la qt proporcionada és superior a l'import d'activacio\r if ( $import_activacio > $qt ) { bounce ( $nom_AA || ": L'import de l'activació és de " || $import_activacio ); }\r \r // Escala del moment de l'activació'\r $total_aFOP = var[ $AA_Transfers ][ 'total_Transfers_a_' || $adr_FOP ];\r if ( ! $total_aFOP ) { \r $escala = 0; \r }\r else {\r $escala = length( $total_aFOP ) -1;\r }\r }", "messages": [ { "app": "data", "payload": { "AA_PF": "{ $AA_PF }", "emissora": "{ $adr__ }", "receptora": "{ $adr_FPre }", "accio": "{ $nom_AA }" } }, { "app": "payment", "payload": { "asset": "{ $unitat }", "outputs": [ { "address": "{ $AA_Transfers }", "amount": "{ $qt }" } ] } }, { "app": "state", "state": "{\r if ( ! var[ 'ordinal' ] ) { $ordinal = 1; } \r else { $ordinal = var[ 'ordinal' ] + 1; }\r var[ 'ordinal' ] = $ordinal; \r \r var[ 'activacio_' || $adr__ ] = \r { \r nom: $args.nom, \r escala: $escala,\r ordinal: $ordinal, \r };\r \r response[ 'Resultat: ' ] = "Activació #" || $ordinal || " amb nom: " || $args.nom || " de l'adr " || $adr__; \r }" } ] } ]
Technical information
Fees:
2,704 bytes
(452 headers, 2252 payload)
Level:1716724
Witnessed level:1716717
Main chain index:1709176
Latest included mc index:1709175
Status:stable/confirmed/final