╔═══════════════════════════════╗ ║ crpc call base 0x4200... ║ ║ ────────────────────── ║ ║ [0] string = Wrapped Ether ║ ╚═══════════════════════════════╝

agent-tools.org

crpc

Chain-aware RPC CLI

Like cast, but with auto ABI encoding, 2600+ chains out of the box, and Etherscan V2 integration.

curl -fsSL crpc.agent-tools.org/install.sh | sh
v0.9.0 ~7.0 MB binary 2600+ chains Rust MIT
Supported Chains
Ethereum Base Arbitrum BSC Polygon Optimism Avalanche Linea Scroll zkSync Fantom Moonbeam + 2600 more

See It in Action

Auto-decoded, human-readable output

crpc — examples
# Query token name — auto decoded
$ crpc call base 0x4200...0006 "name()(string)"
[0] string = Wrapped Ether
 
# ERC-20 balance — built-in token aliases
$ crpc balance base WETH 0xYour...
Human: 0.871 WETH
 
# Gas prices on any chain
$ crpc gas eth
Safe: 20 Gwei Standard: 25 Fast: 30
 
# Query any of 2600+ chains
$ crpc block fantom
Block #98201533 | 42 txs | gas 12.4M
 
# Offline encode — no network needed
$ crpc encode "transfer(address,uint256)" 0xRecip... 1000000
0xa9059cbb000000000000000000...

Features

Everything you need for on-chain queries

🔄

Auto ABI Encode/Decode

Automatic function call encoding and decoding — no manual hex wrangling.

🌍

2600+ Chains

Zero-config access to any chain via chainlist.org. Use names, aliases, or chain IDs.

🔍

Etherscan V2

Unified API for ABI queries, gas prices, and transaction history across 60+ chains.

Batch Multicall3

Bundle multiple contract calls into a single RPC request for maximum efficiency.

🛡

Smart RPC Fallback

Multi-provider failover with automatic L2 fallback to RPC methods.

Offline Tools

encode and decode commands work without network — ABI encode/decode anywhere.

Commands

18 commands for every on-chain task

calleth_call with auto ABI encode/decode
balanceERC-20 token balance query
allowanceERC-20 allowance check
abiFetch contract ABI from Etherscan
codeGet contract bytecode
slotRead storage slot
blockGet block info
txTransaction details + decoded logs
logsQuery and decode event logs
traceDebug trace a transaction
multiBatch calls via Multicall3
diffCompare values across blocks
gasCurrent gas prices
historyTransaction history
transfersERC-20 transfer history
chainsList / search 2600+ chains
encodeABI-encode (offline)
decodeABI-decode (offline)

Install

One command to get started

$ curl -fsSL crpc.agent-tools.org/install.sh | sh
# or: cargo install crpc

# That's it. 2600+ chains, zero config.

# Optional: set Etherscan API key for ABI lookups
$ export ETHERSCAN_API_KEY=your_key

# Optional: set custom RPC endpoints
$ export ETH_RPC_URL=https://your-rpc.example.com