HH4VAMPBQG4RWSBYMWYTRUXQDSPE3Y2G
[
"autonomous agent",
{
"init": "{
$unlock_date = '2027-05-23';
$owner = 'ZCJD5VY24AJOCHAVKHGOFZHFP5EKE6YW';
}",
"messages": {
"cases": [
{
"if": "{trigger.data.withdraw}",
"init": "{
require(timestamp_to_string(timestamp, 'date') >= $unlock_date, "your balance unlocks on " || $unlock_date);
}",
"messages": [
{
"app": "payment",
"payload": {
"asset": "{trigger.data.asset OTHERWISE 'base'}",
"outputs": [
{
"address": "{$owner}",
"amount": "{trigger.data.amount}"
}
]
}
},
{
"app": "state",
"state": "{
response['message'] = 'Withdrawn';
}"
}
]
},
{
"messages": [
{
"app": "state",
"state": "{
response['message'] = 'Accepted deposit';
}"
}
]
}
]
}
}
]
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount