6GETCKT6BHCQJ5YRDFCBBTGGQQJPD5GS
[
"autonomous agent",
{
"init": "{
$_Registre = 'CYA5APZ75G2K7VERMOGG4INAP5YVJV62';
// Retorna el valor d'una entrada del _Registre
$__dada = $refdada =>
data_feed [[
oracles = $_Registre,
feed_name = $refdada,
ifnone = 0
]];
if ( $__dada( '_Portal' ) != trigger.address
AND $__dada( '_Implementacions' ) != trigger.address )
bounce( 'Accés interdit' );
$args = trigger.data;
$proces = $args.proces;
$idgeto = $args.idgeto;
$_Capsa = $__dada( '_Capsa' );
}",
"messages": {
"cases": [
{
"if": "{ $proces == "emissio" }",
"messages": [
{
"app": "data",
"payload": "{ $args }"
},
{
"app": "payment",
"payload": {
"asset": "{ $idgeto }",
"outputs": [
{
"address": "{ $_Capsa }",
"amount": "{ $args.total_emissio }"
}
]
}
},
{
"app": "state",
"state": "{
response[ 'Romanent en ' || $args.geto ] = balance[ $idgeto ];
response[ 'Romanent en bytes' ] = balance[ base ] || ' bytes';
}"
}
]
},
{
"if": "{ $proces == 'configuracio' }",
"messages": [
{
"app": "state",
"state": "{
$unitat = trigger.output[[ asset != base ]].asset;
$qt = trigger.output[[ asset = $unitat ]];
$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;
}"
}
]
}
]
}
}
]
- MCI: 2864275
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Romanent en Testets": 1000000000,
"Romanent en bytes": "60000 bytes"
}
}
- MCI: 2863708
- Not bounced
- Response: {
"responseVars": {
"Ref": "Testets",
"Id": "V2N45cgpVUy9t/idpyeon/0jROofpLsHkOCDOycRBbs=",
"Qt": 1000000000,
"Unitat ": "V2N45cgpVUy9t/idpyeon/0jROofpLsHkOCDOycRBbs="
},
"info": "no messages after filtering"
}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
06.11.2022 11:22:31
6GETCKT6BHCQJ5YRDFCBBTGGQQJPD5GS
out
06.11.2022 11:22:31
in
6GETCKT6BHCQJ5YRDFCBBTGGQQJPD5GS
05.11.2022 11:23:04
in
6GETCKT6BHCQJ5YRDFCBBTGGQQJPD5GS