Blockchain Scanner
Multi-chain blockchain data retrieval tool. Query native token balances, ERC-20 token balances, transaction history, verified contract ABIs, and current gas prices across six supported networks.
Supported Chains
| Chain Value | Network |
|---|---|
ethereum | Ethereum Mainnet (default) |
base | Base L2 |
base_sepolia | Base Sepolia Testnet |
polygon | Polygon PoS |
arbitrum | Arbitrum One |
optimism | Optimism Mainnet |
Actions
balance
Get the native token balance (ETH or MATIC) for one or more wallet addresses.
Required fields:
action:"balance"address: Array of 1-20 wallet addresses (0x-prefixed, 42-character hex strings)
Optional fields:
chain: Network to query (default:"ethereum")
Example - Single address on Ethereum:
{
"action": "balance",
"address": ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"]
}
Example - Multiple addresses on Polygon:
{
"action": "balance",
"chain": "polygon",
"address": [
"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B"
]
}
Response includes: Each address with its balance in native units and in wei, the chain name, and the native token symbol (ETH or MATIC for Polygon).
token_balance
Get ERC-20 token balances for one or more wallet addresses. Supports major stablecoins and wrapped tokens.
Required fields:
action:"token_balance"address: Array of 1-20 wallet addresses
Optional fields:
chain: Network to query (default:"ethereum")token: Token symbol to query (e.g.,"USDC","USDT","DAI","WETH","PYUSD"). Use"all"to query all supported tokens on the chain. Defaults to"all"if omitted.
Supported tokens by chain:
- Ethereum: USDC, USDT, PYUSD, DAI, WETH, WBTC
- Base: USDC, USDbC, DAI, WETH
- Polygon: USDC, USDC.e, USDT, DAI, WETH, WMATIC
- Arbitrum: USDC, USDC.e, USDT, DAI, WETH
- Optimism: USDC, USDC.e, USDT, DAI, WETH
Example - Get USDC balance on Ethereum:
{
"action": "token_balance",
"address": ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"],
"token": "USDC"
}
Example - Get all token balances on Base:
{
"action": "token_balance",
"chain": "base",
"address": ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"],
"token": "all"
}
Response includes: Each address with token balances (formatted balance, raw balance, decimals) for the requested tokens.
transactions
Get transaction history for a single address. Returns transactions sorted by most recent first, in pages of exactly 100.
Required fields:
action:"transactions"address: Array with exactly 1 wallet address
Optional fields:
chain: Network to query (default:"ethereum")transaction_range: Array of two integers[start, end]defining which 100-transaction window to fetch. Index 1 is the most recent transaction. Must span exactly 100 items. Default:[1, 100].
Example - Most recent 100 transactions:
{
"action": "transactions",
"address": ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"]
}
Example - Transactions 101-200 on Arbitrum:
{
"action": "transactions",
"chain": "arbitrum",
"address": ["0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"],
"transaction_range": [101, 200]
}
Response includes: Each transaction with hash, block number, timestamp, from/to addresses, value in ETH and wei, gas details, input data, and error status.
contract_abi
Retrieve the ABI (Application Binary Interface) for a verified smart contract.
Required fields:
action:"contract_abi"address: Array with exactly 1 contract address
Optional fields:
chain: Network to query (default:"ethereum")
Example - Get ABI for a contract on Ethereum:
{
"action": "contract_abi",
"address": ["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]
}
Example - Get ABI on Optimism:
{
"action": "contract_abi",
"chain": "optimism",
"address": ["0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85"]
}
Response includes: The full ABI array, plus counts of functions and events in the contract.
gas_oracle
Get current gas price estimates for a blockchain network. Returns safe (slow), standard, and fast gas prices.
Required fields:
action:"gas_oracle"
Optional fields:
chain: Network to query (default:"ethereum")
Example - Ethereum gas prices:
{
"action": "gas_oracle"
}
Example - Polygon gas prices:
{
"action": "gas_oracle",
"chain": "polygon"
}
Response includes: Safe, standard, and fast gas price estimates (in Gwei), suggested base fee, gas used ratio, and timestamp.
Common Workflows
Check a wallet's full portfolio
- Call
balanceto get native ETH/MATIC balance - Call
token_balancewithtoken: "all"to get all ERC-20 holdings
Investigate transaction activity
- Call
transactionswith default range[1, 100]for the latest 100 transactions - Page through older transactions with
[101, 200],[201, 300], etc.
Inspect a smart contract
- Call
contract_abito retrieve the verified ABI - Use the ABI to understand available functions and events
Estimate transaction costs
- Call
gas_oracleto get current gas prices on the target chain
Important Notes
- All addresses must be 0x-prefixed, 42-character hexadecimal strings.
- The
balanceandtoken_balanceactions accept up to 20 addresses per request. - The
transactionsandcontract_abiactions require exactly 1 address. - The
gas_oracleaction does not require any address. - The
transaction_rangemust always span exactly 100 transactions (e.g.,[1, 100],[101, 200]). - On Polygon, the native token is MATIC; on all other chains it is ETH.
- The
contract_abiaction only works for verified contracts. Unverified contracts will return an error. - Token availability varies by chain. If a token is not supported on the selected chain, the tool returns an error listing available tokens.
- Base Sepolia (testnet) has no preconfigured ERC-20 tokens for
token_balance.







