approve
Set an ERC20 token allowance for a spender, authorizing the spender to transfer a specified amount from your wallet.
Instructions
Approve an amount of an ERC20 token to an address
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | The amount of tokens to approve in base units | |
| chainId | No | Optional EVM chain ID to run this tool on (e.g. 1 for Ethereum, 8453 for Base, 42161 for Arbitrum). Defaults to the active wallet chain. | |
| spender | Yes | The address to approve the allowance to | |
| tokenAddress | Yes | The address of the token to approve |