build_token_approve
Generate unsigned calldata for ERC-20 approve transactions. Supports unlimited allowance for max-uint256.
Instructions
Build UNSIGNED calldata for an ERC-20 approve. Set unlimited=true for the max-uint256 allowance.
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": {
"token": "<token>",
"spender": "<spender>"
},
"name": "build_token_approve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | ||
| amount | No | 0 | |
| spender | Yes | ||
| unlimited | No |