UVCBY7QDXIDFBIUK6BRKJQPIXCOMWQ5L
[
"autonomous agent",
{
"messages": {
"cases": [
{
"if": "{
$base_key = 'balance_'||trigger.address||'_'||'base';
$amount_w_fees = trigger.data.amount ;
trigger.data.withdraw AND $amount_w_fees AND $amount_w_fees <= var[$base_key]
}",
"messages": [
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{trigger.address}",
"amount": "{trigger.data.amount+trigger.output[[asset=base]]-600}"
}
]
}
},
{
"app": "state",
"state": "{
var[$base_key] = var[$base_key] - $amount_w_fees;
}"
}
]
},
{
"messages": [
{
"app": "state",
"state": "{
$base_key = 'balance_'||trigger.address||'_'||'base';
if(!var[$base_key])
var[$base_key] = 0;
var[$base_key] = var[$base_key] + trigger.output[[asset=base]];
$response_base = trigger.output[[asset=base]] || ' bytes';
response['message'] = 'accepted coins:' || $response_base ;
}"
}
]
}
]
}
}
]
- MCI: 970498
- Not bounced
- Response unit:
- Response: {}
- MCI: 970425
- Not bounced
- Response: {
"responseVars": {
"message": "accepted coins:171500 bytes"
},
"error": "no messages after filtering"
}
- MCI: 970383
- Not bounced
- Response: {
"responseVars": {
"message": "accepted coins:10000 bytes"
},
"error": "no messages after filtering"
}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
28.07.2019 00:11:00
UVCBY7QDXIDFBIUK6BRKJQPIXCOMWQ5L
out
28.07.2019 00:11:00
in
UVCBY7QDXIDFBIUK6BRKJQPIXCOMWQ5L
27.07.2019 23:37:57
in
UVCBY7QDXIDFBIUK6BRKJQPIXCOMWQ5L
27.07.2019 23:28:09
in
UVCBY7QDXIDFBIUK6BRKJQPIXCOMWQ5L