Unit ID
fr1K+QIfn9vyZRyYKWT8xXh9cJPejUjSrR9FcftnFi8=
Received
30.10.2020 18:44:54
Confirmation delay (full node)
3 minutes 11 seconds
Confirmation delay (light node)
3 minutes 53 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{\r \r $nom_AA = 'Derivacions';\r $versio = '3';\r \r $AA_PF = trigger.data.AA_PF;\r $args = trigger.data;\r $qt = trigger.output[[asset=base]]; // - 10000; //bounce-fees \r \r $unitat = 'base';\r $AA_Transfers = var[ $AA_PF ][ '_AA_Transfers' ];\r $adr_FOP = var[ $AA_PF ][ '_FOP' ]; \r $adr_Fons_Taxes = var[ $AA_PF ][ '_Fons_Taxes' ];\r \r if ( ! $args.derivacio ) { bounce ( $nom_AA || ': Cal proporcionar el valor de "derivacio"' ); }\r if ( ! $args.receptora ) { bounce ( $nom_AA || ': Cal proporcionar el valor de: "receptora"' ); }\r \r // Comprova q l'adreça de l'AA actuant és operativa\r $adr_AA = var[ $AA_PF ][ '_AA_' || $args.accio ];\r if ( ! is_aa( trigger.address ) ) { bounce ( $nom_AA || ': no AA' ); }\r if ( trigger.address != $adr_AA ) { bounce ( $nom_AA || ': AA no operatiu' ); }\r \r if ( $args.accio == 'Compensacions') {\r $emissora = $args.receptora;\r $receptora = $adr_FOP;\r } \r if ( $args.accio == 'Diposits') {\r $emissora = $args.emissora;\r $receptora = $adr_Fons_Taxes;\r } \r \r }", "messages": [ { "app": "data", "payload": { "AA_PF": "{ $AA_PF }", "emissora": "{ $emissora }", "receptora": "{ $receptora }", "qt": "{ $args.derivacio }", "accio": "{ $nom_AA }" } }, { "app": "payment", "payload": { "asset": "{ $unitat }", "outputs": [ { "address": "{ $AA_Transfers }", "amount": "{ $qt }" } ] } } ] } ]
Technical information
Fees:
2,121 bytes
(452 headers, 1669 payload)
Level:1716907
Witnessed level:1716899
Main chain index:1709359
Latest included mc index:1709358
Status:stable/confirmed/final