IBRMA4LOUVCOLZARWM46LNHQIKXIZBV6
[
"autonomous agent",
{
"init": "{
$admin = 'JBGMJI7XSKLKNHZF26BUBWHVUZSDV3P5';
$f = 1000;
$addr = trigger.address;
$inp = trigger.output[[asset=base]];
}",
"messages": {
"cases": [
{
"if": "{
$total = var[$addr] + $inp - $f;
trigger.data.withdraw AND trigger.data.withdraw != 'all'
}",
"messages": [
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{$addr}",
"amount": "{$total}"
}
]
}
},
{
"app": "state",
"state": "{
var[$addr] = 0;
response['message'] = 'withdrawn: ' || $total || ' bytes';
}"
}
]
},
{
"if": "{
$admin == $addr AND trigger.data.withdraw AND trigger.data.withdraw == 'all'
}",
"messages": [
{
"app": "definition",
"payload": {
"definition": [
"autonomous agent",
{
"bounce_fees": {
"base": 10000
},
"messages": [
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{trigger.address}",
"amount": "{trigger.output[[asset=base]] - 9999}"
}
]
}
}
]
}
]
}
},
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{$addr}",
"amount": "{$total}"
}
]
}
}
]
},
{
"messages": [
{
"app": "state",
"state": "{
var[$addr] = var[$addr] + $inp;
response['message'] = 'got: ' || $inp || ' bytes' ;
}"
}
]
}
]
}
}
]
- MCI: 977933
- Bounced
- Response: {
"error": "negative or fractional amounts"
}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
01.08.2019 16:19:26
in
IBRMA4LOUVCOLZARWM46LNHQIKXIZBV6