Token Operations

ERC-20 token operations: transfers, approvals, balance management, and token information retrieval.

Checking Token Balances

Get Token Balance

Check your balance of any ERC-20 token:

Get my USDC balance

Example Output:

Token Balance:
Amount: 1000.0 USDC
Raw: 1000000000
Decimals: 6

Check Multiple Token Balances

Show me all my token balances

Example Output:

Token Balance:
Amount: 1000.0 USDC
Raw: 1000000000
Decimals: 6

Get Token Information

Learn about any token contract:

Example Output:

Token Transfers

Basic Token Transfer

Send tokens to another address:

Example Output:

Transfer Using Token Address

You can also specify tokens by contract address:

Transfer Maximum Amount

Send all available tokens:

Example Output:

Gas Fees: Token transfers require ETH for gas fees, even when transferring other tokens. Always keep some ETH in your wallet for gas.

Token Approvals

Understanding Approvals

Token approvals allow other addresses (usually smart contracts) to spend your tokens on your behalf. This is essential for:

  • DEX Trading - Allowing exchanges to trade your tokens

  • DeFi Protocols - Lending, borrowing, yield farming

  • NFT Marketplaces - Using tokens to buy NFTs

Approve Token Spending

Allow a contract to spend your tokens:

Example Output:

Unlimited Approval

Grant unlimited spending permission:

Example Output:

  • Consider revoking approval when done

💡 Use "Revoke USDC approval for 0x1f9840" to remove this permission

Approve 0 USDC spending for 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984

Token approval successful Transaction hash: 0x123abc456def... Token: USDC Spender: 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 Amount: 0

Switch to Polygon Get my USDC balance Transfer 100 USDC to 0x7099

Approve 1000 USDC spending for Uniswap V3 Router

Show all USDC approvals for my wallet

Revoke all USDC approvals

Analyze USDC token contract

🔬 Token Analysis: USDC

📊 Contract Metrics:

  • Total Supply: 40,502,123,456 USDC

  • Holders: 1,234,567 addresses

  • Transfers: 15,678,901 total

🔍 Features Detected:

  • ✅ Standard ERC-20 implementation

  • ✅ Pausable (admin can pause transfers)

  • ✅ Blacklistable (admin can block addresses)

  • ❌ Not mintable by public

🛡️ Security:

  • Audited by multiple firms

  • Centralized issuance model

  • Regulatory compliance features

Add custom token at 0x123abc... with symbol TEST and 18 decimals

Get test USDC from faucet Get 1000 DAI from faucet

❌ Token Transfer Failed: Insufficient Balance

💰 Required: 1500.0 USDC 💰 Available: 1000.0 USDC 💰 Shortfall: 500.0 USDC

🔧 Solutions:

  • Reduce amount: "Transfer 900 USDC to 0x7099"

  • Get more tokens: "Get test USDC from faucet" (mock mode)

  • Check different wallet: "Connect to 0x3C44"

❌ Token Transfer Failed: Insufficient ETH for Gas

💰 Required ETH: 0.002 ETH (for gas) 💰 Available ETH: 0.001 ETH 💰 Shortfall: 0.001 ETH

🔧 Solutions:

  • Get more ETH: "Get test ETH from faucet"

  • Use different wallet: "Connect to wallet with ETH"

  • Reduce gas price: "Transfer with slow gas"

❌ Token "UNKNOWN" not found

🔍 Searched for: UNKNOWN token ⛓️ Chain: Anvil (31337)

🔧 Solutions:

  • Check spelling: Common tokens are USDC, USDT, DAI

  • Use contract address: "Transfer 100 tokens at 0x123abc..."

  • Add custom token: "Add token 0x123abc... with symbol UNKNOWN"

  • List available: "Show available tokens"

❌ Token Transfer Failed: Approval Required

📋 Issue: Contract needs approval to spend your tokens 📍 Token: USDC 📍 Contract: 0x1f9840...F984 💰 Requested: 1000.0 USDC

🔧 Solution: "Approve 1000 USDC spending for 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984"

❌ Approve unlimited USDC for DEX ✅ Approve 1000 USDC for DEX

"Confirm address 0x70997970C51812dc3A010C7d01b50e0d17dc79C8 is correct"

"Transfer 1 USDC to test the address first"

"What chain am I on before sending tokens?"

"What network am I on?" "Switch to Ethereum"

"Get token info for 0xA0b86991c431B..." "Add custom token 0xA0b86991c431B..."

"Check my ETH balance for gas" "Estimate gas for token transfer"

"Check USDC approval for 0x1f9840..." "Approve USDC spending for contract"

"What chain shows my USDC balance?" "Switch to Polygon to check USDC.e"

"Check pending transactions" "Get transaction status 0xabc123..."

Last updated