YO5MZ6AZ3C66L3Q7YJKW434WCRJ6N7U6
[
"autonomous agent",
{
"init": "{
$admin = 'JBGMJI7XSKLKNHZF26BUBWHVUZSDV3P5';
$f = 1000;
$addr_init = trigger.address;
$inp = trigger.output[[asset=base]];
}",
"messages": {
"cases": [
{
"if": "{
$total = var[$addr_init] + $inp - $f;
trigger.data.withdraw AND trigger.data.withdraw != 'all'
}",
"messages": [
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{$addr_init}",
"amount": "{$total}"
}
]
}
},
{
"app": "state",
"state": "{
var[$addr_init] = 0;
response['message'] = 'withdrawn: ' || $total || ' bytes';
}"
}
]
},
{
"if": "{
$admin == $addr_init AND trigger.data.withdraw AND trigger.data.withdraw == 'all'
}",
"messages": [
{
"app": "definition",
"payload": {
"definition": [
"autonomous agent",
{
"messages": [
{
"init": "{
$init="{trigger.address}";
}",
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{"{trigger.address}"}",
"amount": "{"{trigger.output[[asset=base]] - 1000}"}"
}
]
}
}
]
}
]
}
}
]
},
{
"messages": [
{
"app": "state",
"state": "{
var[$addr_init] = var[$addr_init] + $inp;
response['message'] = 'got: ' || $inp || ' bytes' ;
}"
}
]
}
]
}
}
]
- MCI: 984981
- Not bounced
- Response unit:
- Response: {}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
04.08.2019 21:58:11
YO5MZ6AZ3C66L3Q7YJKW434WCRJ6N7U6
out
YO5MZ6AZ3C66L3Q7YJKW434WCRJ6N7U6
04.08.2019 21:58:11
in
YO5MZ6AZ3C66L3Q7YJKW434WCRJ6N7U6