evm_get_token_holdings_summary
Summarize a wallet's native and ERC-20 token holdings on an EVM testnet, filtering to non-zero balances and computing a portfolio diversity score for quick review.
Instructions
Summary of token holdings: native + ERC-20 tokens with diversity metrics.
CRITICAL RULES:
Read-only operation
Native balance always included
Zero balances excluded by default
Portfolio diversity calculated
PARAMETERS:
chain: EVM chain (required)
address: Wallet address (required)
tokenAddresses: Specific tokens (optional)
includeZeroBalances: Show zero balances (optional, default: false)
EXAMPLES: ✅ All holdings: {chain: "ethereum", address: "0x742d35Cc..."} ✅ Specific tokens: {chain: "polygon", address: "0x742d35Cc...", tokenAddresses: ["0xToken1...", "0xToken2..."]} ✅ Include zeros: {chain: "bsc", address: "0x742d35Cc...", includeZeroBalances: true}
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: • nativeBalance: Native token amount • tokenBalances: ERC-20 holdings array • diversityScore: Portfolio diversity metric • totalTokens: Number of unique tokens
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>",
"address": "<address>"
},
"name": "evm_get_token_holdings_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | EVM chain to query | |
| address | Yes | Ethereum address (0x...) | |
| tokenAddresses | No | Optional: Array of ERC-20 token contract addresses to check | |
| includeZeroBalances | No | Optional: Include tokens with zero balance (default: false) |