EVM MCP Server
by mcpdotdirect
Verified
approve_token_spending
Approve another address (like a DeFi protocol or exchange) to spend your ERC20 tokens. This is often required before interacting with DeFi protocols.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
amount | Yes | The amount of tokens to approve in token units, not wei (e.g., '1000' to approve spending 1000 tokens). Use a very large number for unlimited approval. | |
network | No | Network name (e.g., 'ethereum', 'optimism', 'arbitrum', 'base', 'polygon') or chain ID. Defaults to Ethereum mainnet. | |
privateKey | Yes | Private key of the token owner account in hex format (with or without 0x prefix). SECURITY: This is used only for transaction signing and is not stored. | |
spenderAddress | Yes | The contract address being approved to spend your tokens (e.g., a DEX or lending protocol) | |
tokenAddress | Yes | The contract address of the ERC20 token to approve for spending (e.g., '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48' for USDC on Ethereum) |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools
- get_chain_info
- resolve_ens
- get_supported_networks
- get_block_by_number
- get_latest_block
- get_balance
- get_erc20_balance
- get_token_balance
- get_transaction
- get_transaction_receipt
- estimate_gas
- transfer_eth
- transfer_erc20
- approve_token_spending
- transfer_nft
- transfer_erc1155
- transfer_token
- read_contract
- write_contract
- is_contract
- get_token_info
- get_token_balance_erc20
- get_nft_info
- check_nft_ownership
- get_erc1155_token_uri
- get_nft_balance
- get_erc1155_balance
- get_address_from_private_key