7OTDBB6SXXC4GFY7TCP4VBNLGRYGPDNB
[
"autonomous agent",
{
"bounce_fees": {
"base": 10000
},
"init": "{
$BOUNCE_FEE = 10000;
$TYPICAL_FEE = 1000;
$REIMBURSEMENT = $BOUNCE_FEE - $TYPICAL_FEE;
}",
"messages": {
"cases": [
{
"if": "{ trigger.data.owner }",
"init": "{
$owner = trigger.data.owner otherwise bounce("owner field is missing");
$period = trigger.data.period otherwise bounce("period field is missing");
$reference = sha256($owner || $period );
if (var[$reference]) bounce("pension plan already exists");
}",
"messages": [
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{trigger.address}",
"amount": "{$REIMBURSEMENT}"
}
]
}
},
{
"app": "state",
"state": "{
var[$reference] = 'requested';
var[$reference||'.owner'] = $owner;
var[$reference||'.period'] = $period;
response['reference'] = $reference;
response['status'] = var[$reference];
response['message'] = 'pension plan created';
}"
}
]
}
]
}
}
]
- MCI: 1035778
- Not bounced
- Response: {
"error": "received bytes are not enough to cover bounce fees"
}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
01.09.2019 11:27:12
in
7OTDBB6SXXC4GFY7TCP4VBNLGRYGPDNB