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