Prepare a veAERO lock action
prepare_aerodrome_lockBuild one veAERO escrow action: create a lock, add AERO to one, extend it, switch permanent locking on or off, or withdraw an expired one. Durations are measured from now and floored to a week boundary, so anything under a week is refused rather than signed. The read bundle returns ownership and the lock's (amount, end, isPermanent) so an impossible action — withdrawing an unexpired or permanent lock, extending past nothing — is caught before signing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chain_id": "<chain_id>",
"sender": "<sender>",
"action": "<action>"
},
"name": "prepare_aerodrome_lock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Which veAERO lock action to build | |
| amount | No | AERO amount in base units; required for create and increase_amount (positive decimal integer) | |
| sender | Yes | address | |
| chain_id | Yes | Base (8453) only | |
| venft_id | No | veNFT token id; required for every action but create (positive decimal integer) | |
| lock_duration | No | Lock length in seconds measured from now, required for create and extend. The escrow floors it to a week boundary and caps it at four years. (positive decimal integer) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| execution_plan_reference | No | artifact_reference; pass unchanged |