Prepare a new ve-token stake
prepare_ve33_stakeCreate a new VeToken stake with an exact stake-token approval. Omitting duration selects the maximum lock; an explicit shorter duration is supported. No existing NFT, vote, fee balance, or ownership is changed.
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>",
"ve_token": "<ve_token>",
"sender": "<sender>",
"stake_token": "<stake_token>",
"amount": "<amount>",
"salt": "<salt>"
},
"name": "prepare_ve33_stake"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| salt | Yes | User-selected salt for a deterministic, replay-detectable VeToken ID (bytes32 hex) | |
| amount | Yes | Base units (positive decimal integer) | |
| sender | Yes | address | |
| chain_id | Yes | With ve_token, from get_ve33_allocations (STONX: 4663), not the wallet's chain | |
| ve_token | Yes | address | |
| stake_token | Yes | address | |
| max_duration | No | Defaults to true when duration_seconds is omitted; set false only with an explicit duration_seconds | |
| duration_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| execution_plan_reference | No | artifact_reference; pass unchanged |