x402_approve
Approve a contract to spend your tokens. Required before DeFi operations like swaps, lending, or staking.
Instructions
Approve a contract to spend your tokens. Required before some DeFi operations.
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": {
"spender": "<spender>",
"amount": "<amount>"
},
"name": "x402_approve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | Token to approve | USDs |
| amount | Yes | Amount to approve (use 'unlimited' for max) | |
| spender | Yes | Contract address to approve |