Guide

CLI

One binary, eight reads and an MCP server. An address as the first argument means balance, no ceremony.

The short path

npx @agntn/explorers vitalik.eth
npx @agntn/explorers tx vitalik.eth -n 5
npx @agntn/explorers providers

A first argument that looks like an address defaults to balance. When both provider and chain are omitted, balance reads start on Ethereum; an explicit --provider keeps that provider's default chain, so explorers balance 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa -p mempool reads Bitcoin without a -c.

Commands

CommandWhat it doesExample
balanceNative token balance, including ENSexplorers balance vitalik.eth
txTransaction history or one transactionexplorers tx vitalik.eth -n 5
contractABI, source and verification statusexplorers contract 0x1f984...
tokensERC-20, SPL and Cardano native holdingsexplorers tokens vitalik.eth
transfersERC-20 transfer history for an addressexplorers transfers vitalik.eth
gasCurrent gas pricesexplorers gas -c base
blockBlock data by numberexplorers block 18000000
providersRegistered providers and their capabilitiesexplorers providers
mcpThe MCP server over stdioexplorers mcp

Options

OptionMeaning
-c, --chainChain name or alias, for example eth, mainnet, btc or arbitrum
-p, --providerExplorer backend, for example etherscan, blockscout or mempool
-n, --limitMaximum number of transactions
-m, --modeForce tx into history or detail mode when the input is ambiguous
-t, --tokenLimit transfers to one token contract

When tx cannot tell

tx classifies its argument: a 64-hex string is a hash on Ethereum, a hash on Bitcoin, TRON and Cardano too, and a base58 string of the right length is a hash on Solana and Sui. Everything else is treated as an address. Arweave breaks that rule, because a transaction id and a wallet address have the same shape there, so say what you mean:

explorers tx FPjbN_btYKzcf8QASjs30v5C0FPv7XpwKXENBW8dqVw -c arweave -n 3
explorers tx 2Bg8S0GcQmbC-FeT5dDKcj0WOK2YmH7Y4mlW-mO8_yE -p arweave -m detail

--mode accepts history or detail and nothing else. A typo is an error, not a guess.

Keys

Keys come from the environment and only from there. ETHERSCAN_API_KEY, SOLSCAN_API_KEY, HELIUS_API_KEY, TRONSCAN_API_KEY, BLOCKBERRY_API_KEY, and BLOCKCHAIR_API_KEY for a higher Blockchair tier. Set one and the matching provider moves to the front of the queue for every chain it serves; the ranking is in Provider selection. explorers providers prints which ones are active on this machine.

Exit codes

A failed read prints the error and exits 1. An invalid --limit, a --mode outside the two values, or a provider that cannot serve the operation all fail the same way, before any request goes out.

@agntn/explorers·MIT license· Read-only. Addresses you type go to a public explorer API, never to a wallet.