evm_approve_token_spending
Approve an ERC-20 token allowance for a spender using raw token units, enabling the spender to transfer tokens up to the specified amount.
Instructions
Approve ERC-20 spender allowance using raw token units.
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": {
"tokenAddress": "<tokenAddress>",
"spenderAddress": "<spenderAddress>",
"amount": "<amount>"
},
"name": "evm_approve_token_spending"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Raw token allowance amount | |
| chainId | No | Chain ID (defaults to runtime config) | |
| tokenAddress | Yes | ERC-20 token address | |
| spenderAddress | Yes | Spender address or ENS name |