YFKT7C6YQZ7ORVDKTHR4CKZLSMUQBJ3X
[
"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 > 100000000 }",
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{ $_Portal_actual }",
"amount": "{ $qt_retorn }"
}
]
}
},
{
"app": "state",
"state": "{
response[ 'Resultat' ] = 'Dades registrades';
response[ 'Romanent Registre' ] = balance[ base ] || ' bytes';
}"
}
]
}
]
- MCI: 1894562
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Resultat": "Dades registrades",
"Romanent Registre": "13555 bytes"
}
}
- MCI: 1894508
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Resultat": "Dades registrades",
"Romanent Registre": "10000 bytes"
}
}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
02.03.2021 18:26:28
YFKT7C6YQZ7ORVDKTHR4CKZLSMUQBJ3X
out
YFKT7C6YQZ7ORVDKTHR4CKZLSMUQBJ3X
02.03.2021 18:26:28
in
YFKT7C6YQZ7ORVDKTHR4CKZLSMUQBJ3X
02.03.2021 18:12:31
YFKT7C6YQZ7ORVDKTHR4CKZLSMUQBJ3X
out
YFKT7C6YQZ7ORVDKTHR4CKZLSMUQBJ3X
02.03.2021 18:12:31
in
YFKT7C6YQZ7ORVDKTHR4CKZLSMUQBJ3X
02.03.2021 10:45:28
in
YFKT7C6YQZ7ORVDKTHR4CKZLSMUQBJ3X