PVYLDBYV5KGOVAFAKWQJ2KI65CQ5OF3U
[
"autonomous agent",
{
"bounce_fees": {
"base": 10000
},
"messages": [
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{trigger.address}",
"amount": "{trigger.output[[asset=base]] - 1000}"
}
]
}
},
{
"app": "state",
"state": "{
$hash_and_percentage = "hash="||"123"||" %="||"45";
$separator_pos=index_of($hash_and_percentage, " %=");
$hash = substring($hash_and_percentage, 0, $separator_pos);
$percentage = json_parse(substring($hash_and_percentage, $separator_pos + 3));
$heritage_value = round(100000 * $percentage /100);
response['percentage'] = $percentage;
response['hash'] = $hash;
response['heritage_value'] = $heritage_value;
}"
}
]
}
]
- MCI: 1100416
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"percentage": 45,
"hash": "hash=123",
"heritage_value": 45000
}
}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
10.10.2019 19:51:00
PVYLDBYV5KGOVAFAKWQJ2KI65CQ5OF3U
out
10.10.2019 19:51:00
in
PVYLDBYV5KGOVAFAKWQJ2KI65CQ5OF3U