evm_get_account_info
Retrieve complete account state on an EVM chain in one call, including balance, nonce, contract status, and bytecode to verify accounts and contracts.
Instructions
Get comprehensive account information including balance, nonce, contract code, and account type.
Retrieves complete account state from the blockchain in a single call. More efficient than multiple separate queries for balance, nonce, and contract status.
CRITICAL RULES:
Returns balance in both wei and ether units
Nonce indicates number of transactions sent from this address
Contract code is returned if address is a smart contract
All data reflects current blockchain state (not historical)
PARAMETERS:
chain: EVM chain to query (required)
Account state is chain-specific
Same address can have different states on different chains
address: Ethereum address to query (required)
Format: 0x followed by 40 hexadecimal characters
Works for both EOA and contract addresses
Example: "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"
EXAMPLES: ✅ Check wallet account info: {chain: "ethereum", address: "0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"}
✅ Inspect contract account: {chain: "polygon", address: "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619"}
✅ Verify nonce before transaction: {chain: "bsc", address: "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"}
❌ Invalid - wrong format: {chain: "ethereum", address: "0x123"}
❌ Invalid - not checksummed warning: {chain: "polygon", address: "0X742D35CC6634C0532925A3B844BC9E7595F0BEB"}
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 operation success • address: Queried address • balance: Object with wei (string) and ether (string) values • nonce: Transaction count (number of txs sent from this address) • isContract: Boolean indicating if this is a contract • contractCode: Hex string of bytecode (if contract), null otherwise • codeHash: Keccak256 hash of contract code • executionTime: Time taken in milliseconds
COMMON MISTAKES:
Expecting historical balance (this returns current state only)
Confusing nonce with transaction count (nonce = sent transactions only)
Not checking isContract before attempting contract interactions
Assuming zero nonce means unused address (could have received funds)
USE CASES:
Get complete account overview in one call
Verify account has sufficient balance and correct nonce before signing
Determine if address is contract before attempting transfer
Audit account state for analytics
Debug transaction nonce issues
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_account_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | EVM chain to query | |
| address | Yes | Ethereum address (0x... - 42 characters) |