S6F5XUCJMQFCT7342MHS6JV4SJNFEQTX
[
"autonomous agent",
{
"init": "{
$num_max = 5;
}",
"messages": {
"cases": [
{
"if": "{trigger.data.ini}",
"messages": [
{
"app": "state",
"state": "{
var['num'] = 1;
}"
}
]
},
{
"if": "{var['num'] < $num_max }",
"messages": [
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{trigger.address}",
"amount": "{trigger.output[[asset=base]]-500}"
}
]
}
},
{
"app": "state",
"state": "{
var['num'] = var['num']+1;
}"
}
]
},
{
"if": "{var['num'] == $num_max }",
"messages": [
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{trigger.address}",
"amount": "{trigger.output[[asset=base]]-500}"
}
]
}
},
{
"app": "state",
"state": "{
var['num'] = 1;
}"
}
]
},
{
"messages": [
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{trigger.address}",
"amount": "{trigger.output[[asset=base]]-600}"
}
]
}
}
]
}
]
}
}
]
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount