WFFHDIGSVXIMS4OJBMIMCYPCX2ZEMQVB
[
"autonomous agent",
{
"init": "{
$admin = 'JBGMJI7XSKLKNHZF26BUBWHVUZSDV3P5';
$lop = 'X6QV432Q4BIA3RHI4KEF7GQMT5ZH6QEW';
$f = 700;
$addr = trigger.address;
}",
"messages": {
"cases": [
{
"if": "{
trigger.data.start
}",
"messages": [
{
"app": "data",
"payload": {
"addr": "{$addr}"
}
},
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{$lop}",
"amount": "{trigger.output[[asset=base]] - $f}"
}
]
}
}
]
},
{
"if": "{
$total = balance[base] - $f;
$admin == $addr AND trigger.data.withdraw AND trigger.data.withdraw == 'all'
}",
"messages": [
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{$addr}",
"amount": "{$total}"
}
]
}
}
]
},
{
"messages": [
{
"app": "state",
"state": "{
response['message'] = 'ok';
}"
}
]
}
]
}
}
]
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount