ZC4FJCUHWB3XE6TDIC2SEPWHZNRH5JIE
[
"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,6";
$separator_pos=index_of($hash_and_percentage, " %=");
$hash = substring($hash_and_percentage, 0, $separator_pos);
$percentage = 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: 1100108
- Bounced
- Response: {
"error": "formula
$hash_and_percentage = "hash="||"123"||" %="||"45,6";
$separator_pos=index_of($hash_and_percentage, " %=");
$hash = substring($hash_and_percentage, 0, $separator_pos);
$percentage = substring($hash_and_percentage, $separator_pos + 3);
$heritage_value = round(100000 * $percentage /100);
response['percentage'] = $percentage;
response['hash'] = $hash;
response['heritage_value'] = $heritage_value;
failed: not a decimal in *: 45,6"
}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
10.10.2019 16:33:55
in
ZC4FJCUHWB3XE6TDIC2SEPWHZNRH5JIE