G7KDRMGG5JP3ARUPFY2JBAFZAZQBX3RX
[
"autonomous agent",
{
"init": "{
$_Registre = 'GQONBV53I6ESRIOFIDPXANNUM64F47O3';
// 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;
}",
"messages": {
"cases": [
{
"if": "{ $proces == "emissio" }",
"messages": [
{
"app": "data",
"payload": "{ $args }"
},
{
"app": "payment",
"payload": {
"asset": "{ $idgeto }",
"outputs": [
{
"address": "{ $args._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;
}"
}
]
}
]
}
}
]
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount