evm_mint_token
Mint new ERC20 tokens to a specified address on an EVM chain, increasing total supply. Use it for airdrops, rewards, or testing when the token contract grants you minter privileges.
Instructions
Mint (create) additional tokens and add them to circulation (requires minter role on token contract).
Creates new tokens from nothing and sends them to specified address, increasing total supply. Only works if token contract implements minting functionality and caller has minter privileges.
CRITICAL RULES:
Token contract MUST support minting (not all ERC20 tokens do)
Caller MUST have minter role or be contract owner
Increases total token supply (inflationary)
Transaction is irreversible once confirmed
Most standard tokens (USDC, USDT) do NOT allow public minting
Works mainly with custom tokens you deployed
PARAMETERS:
chain: EVM chain where token is deployed (required)
Token must support minting on this chain
Requires gas payment in native token
tokenAddress: Mintable token contract address (required)
Format: 0x followed by 40 hex characters
Must be token with mint() function
Typically tokens you deployed yourself
Public tokens (USDC, DAI) don't allow minting
toAddress: Recipient address for minted tokens (required)
Format: 0x followed by 40 hex characters
Can be any address (EOA or contract)
Often the minter's own address
amount: Amount to mint in token units (required)
Human-readable format: "1000" = 1000 tokens
Automatically converted using token decimals
No upper limit (careful with tokenomics)
Examples: "1000000", "100.5", "50"
privateKey: Minter's private key (required, KEEP SECRET)
Format: 0x followed by 64 hex characters
Must be address with MINTER_ROLE or owner
Usually contract deployer has this role
Never expose, share, or log this value
EXAMPLES: ✅ Mint 1000 tokens to your address (Polygon): {chain: "polygon", tokenAddress: "0xYourToken...", toAddress: "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb", amount: "1000", privateKey: "0xac0974..."}
✅ Mint tokens for airdrop (BSC): {chain: "bsc", tokenAddress: "0x...", toAddress: "0xRecipient...", amount: "500", privateKey: "0x..."}
✅ Mint small amount for testing (Arbitrum): {chain: "arbitrum", tokenAddress: "0x...", toAddress: "0x...", amount: "10", privateKey: "0x..."}
❌ Invalid - no minter role: {privateKey: "0xRandomUser..."} // Not authorized
❌ Invalid - standard token doesn't support minting: {tokenAddress: "0xUSDC..."} // USDC doesn't allow public minting
SUPPORTED EVM CHAINS (7 networks): • ethereum (Sepolia) - EIP-1559 enabled, ~12s blocks, moderate gas costs • polygon (Amoy) - Low fees, fast finality (~2s), layer 2 • avalanche (Fuji C-Chain) - Sub-second finality, dynamic fees • bsc (BNB Testnet) - 3s blocks, low gas costs, Binance ecosystem • arbitrum (Sepolia) - Optimistic rollup, low fees, Ethereum security • base (Sepolia) - Coinbase layer 2, EIP-1559, low fees • worldchain (World Sepolia) - World Network testnet, EIP-1559
CRITICAL GAS CONSIDERATIONS:
Ethereum: High gas costs, use gas oracle for timing
Polygon/BSC: Very low gas, safe for frequent transactions
Arbitrum/Base: L2 optimizations, ~10-50x cheaper than Ethereum
Avalanche: Dynamic fees, can spike during congestion
Always check gas price before executing transactions
TESTNET TOKENS: All chains use testnet tokens with NO REAL VALUE. Faucets available for all supported networks.
OUTPUT STRUCTURE: • success: Boolean indicating minting success • chain: Chain where minting occurred • transactionHash: Mint transaction hash • tokenAddress: Token contract address • toAddress: Recipient of minted tokens • amount: Amount minted (formatted) • minter: Minter address (from privateKey) • newTotalSupply: Updated total supply after minting • gasUsed: Gas consumed by transaction • executionTime: Time taken in milliseconds
COMMON MISTAKES:
Trying to mint tokens you didn't deploy (access denied)
Not having minter role (transaction will fail)
Minting on wrong chain (token not deployed there)
Over-minting and destroying tokenomics
Not considering impact on token price (inflation)
USE CASES:
Airdrop tokens to community members
Reward program (mint tokens as rewards)
Gradual token distribution (vesting schedules)
Testing token functionality on testnet
Adjust supply based on demand (algorithmic tokens)
MINTING MECHANICS:
Increases total supply by minted amount
Credits recipient address with new tokens
Dilutes existing token holders (inflation)
No maximum limit (except uint256 max)
Can be called multiple times
ACCESS CONTROL:
Token contract must have implemented access control
Common patterns:
Ownable: Only owner can mint
AccessControl: Addresses with MINTER_ROLE can mint
No access control: Anyone can mint (dangerous!)
TOKENOMICS IMPACT:
Minting increases supply (inflationary)
Can decrease token value if not managed
Should align with tokenomics model
Consider: emission schedule, max supply, utility
GAS COSTS:
Similar to token transfers (~50,000-65,000 gas)
Ethereum Sepolia: ~0.001-0.002 ETH
Polygon: ~0.00005 POL (very cheap)
BSC: ~0.0001 BNB
Arbitrum/Base: ~0.0001 ETH
SECURITY NOTES:
Protect minter private key carefully (can inflate supply)
Consider time-locking minting functions
Implement minting caps for safety
Test on testnet before mainnet minting
Monitor total supply after minting
CHECKING MINTER ROLE: Before attempting to mint, verify you have permission:
Check if you're contract owner
Check if you have MINTER_ROLE (AccessControl pattern)
Attempt small test mint first
Running on Linux.
LINUX-SPECIFIC NOTES:
Package manager: apt (Ubuntu/Debian), yum (RHEL/CentOS), or pacman (Arch)
Python 3 is typically 'python3' command
GNU tools are standard
Use 'xdg-open' command to open files/applications
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": {
"chain": "<chain>",
"tokenAddress": "<tokenAddress>",
"toAddress": "<toAddress>",
"amount": "<amount>",
"privateKey": "<privateKey>"
},
"name": "evm_mint_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | EVM chain to execute on | |
| amount | Yes | Amount to mint (in token units) | |
| toAddress | Yes | Recipient address (0x...) | |
| privateKey | Yes | Minter private key (0x...) | |
| tokenAddress | Yes | ERC20 token contract address (0x...) |