WBJBUJM62OL7UOEDC4OG76OR7DCRQALZ
[
"autonomous agent",
{
"messages": {
"cases": [
{
"if": "{ trigger.data.action == 'deploy' }",
"init": "{
$base = 'HA75DNCKJ4ZCLGHSUVEAIBNRTHO63D7T';
require(trigger.data.unlock_date, "unlock_date required");
$ud_ts = parse_date(trigger.data.unlock_date);
require($ud_ts, "invalid unlock_date");
$ud = timestamp_to_string($ud_ts, 'date');
$owner = trigger.address;
$name = trigger.data.name OTHERWISE '';
$params = { owner: $owner, unlock_date: $ud };
if ($name) $params.name = $name;
$def = ["autonomous agent", { base_aa: $base, params: $params }];
$new_aa = chash160($def);
}",
"messages": [
{
"app": "definition",
"payload": {
"definition": "{ $def }"
}
},
{
"app": "state",
"state": "{
var['list'] ||= [ { owner: $owner, aa: $new_aa, name: $name } ];
response['message'] = 'instance deployed';
response['aa'] = $new_aa;
response['owner'] = $owner;
response['unlock_date'] = $ud;
if ($name) response['name'] = $name;
}"
}
]
}
]
}
}
]
- MCI: 11500863
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"message": "instance deployed",
"aa": "YH44L2TZ35EBP63PAD24IUIL2SUDH5FG",
"owner": "TH22XC6RYLFUJALRKNE3ZHF5Q7WA5RI6",
"unlock_date": "2025-08-18",
"name": "test1234"
}
}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
18.08.2025 20:23:44
WBJBUJM62OL7UOEDC4OG76OR7DCRQALZ
out
WBJBUJM62OL7UOEDC4OG76OR7DCRQALZ
18.08.2025 20:23:44
in
WBJBUJM62OL7UOEDC4OG76OR7DCRQALZ