NH7VNGO7ZS75WK4L23CELOLVEOX4SFD7
[
"autonomous agent",
{
"bounce_fees": {
"base": 10000
},
"messages": {
"cases": [
{
"if": "{!var['last_id']}",
"messages": [
{
"app": "state",
"state": "{
var['last_id'] = 1;
var['last_address'] = trigger.address;
var['last_timestamp'] = timestamp;
response['message'] = 'first,last_id:' || var['last_id'] || ',timestamp:' || var['last_timestamp'];
}"
}
]
},
{
"if": "{
$times = timestamp - var['last_timestamp'];
$times < 600000
}",
"messages": [
{
"app": "state",
"state": "{
$last_timestamp = var['last_timestamp'];
var['last_address'] = trigger.address;
var['last_timestamp'] = timestamp;
response['message'] = 'go,last_id:' || var['last_id'] || ',last_time:' || $last_timestamp || ', timestamp:' || timestamp;
}"
}
]
},
{
"if": "{
$times = timestamp - var['last_timestamp'];
$times > 600000
}",
"messages": [
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{ var['last_address'] }"
}
]
}
},
{
"app": "state",
"state": "{
$last_timestamp = var['last_timestamp'];
var['last_id'] = var['last_id'] + 1;
var['last_address'] = trigger.address;
var['last_timestamp'] = timestamp;
response['message'] = 'go,last_id:' || var['last_id'] || ',last_time:' || $last_timestamp || ', timestamp:' || timestamp;
}"
}
]
}
]
}
}
]
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount