AAF6PCG3Q353NL7WGANO5VIVBGHZPLKE
[
"autonomous agent",
{
"init": "{
$nom_AA = 'Registre';
$versio = '01';
//$_Portal_original = '0000000000';
$_Portal_original = trigger.address; //Hauria de ser fix amb adr darrer Portal
$_Portal_actual =
data_feed[[ oracles = this_address, feed_name = 'portal_actual', ifnone = false ]]
otherwise $_Portal_original;
if ( $_Portal_actual != trigger.address )
{ bounce ( 'Portal no reconegut' ); }
$args = trigger.data;
$qt_retorn =
balance[ base ] > 20000 ?
balance[ base ] - 20000 :
0;
}",
"messages": [
{
"app": "data_feed",
"payload": "{ $args }"
},
{
"if": "{ $qt_retorn > 1000 }",
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{ $_Portal_actual }",
"amount": "{ $qt_retorn }"
}
]
}
},
{
"app": "state",
"state": "{
response[ 'Dades registrades' ] = '';
}"
}
]
}
]
- MCI: 1893706
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Dades registrades": ""
}
}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
02.03.2021 09:56:49
AAF6PCG3Q353NL7WGANO5VIVBGHZPLKE
out
AAF6PCG3Q353NL7WGANO5VIVBGHZPLKE
02.03.2021 09:56:49
in
AAF6PCG3Q353NL7WGANO5VIVBGHZPLKE