GGCTQVZIAP5J3OZJJBJUT7ZYWTSRC5QR
[
"autonomous agent",
{
"bounce_fees": {
"base": 10000
},
"getters": "{
$get_vrf_unit = ($address) => {
return var['pk_' || $address];
};
$get_pubkey = ($address) => {
$unit = var['pk_' || $address];
unit[$unit].messages[[.app='data']].payload.pubkey
};
}",
"messages": {
"cases": [
{
"if": "{trigger.data.type == 'add_me' AND trigger.data.pubkey_unit}",
"messages": [
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "
UWU2UO3Z4AQAEP2GZR276M4U7IAXJ7ZX",
"amount": "{trigger.output[[asset=base]] - 5000}"
}
]
}
},
{
"app": "state",
"state": "{
if (exists(var['pk_' || trigger.address])) {
bounce('already init');
}
var['pk_'] = trigger.data.pubkey_unit;
response['added'] = trigger.address;
}"
}
]
}
]
}
}
]
- MCI: 3246909
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"added": "IFCSZYF6SLPC7IYNEIDEHMI6SEVDJOFM"
}
}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
19.11.2023 21:48:24
GGCTQVZIAP5J3OZJJBJUT7ZYWTSRC5QR
out
19.11.2023 21:48:24
in
GGCTQVZIAP5J3OZJJBJUT7ZYWTSRC5QR