Features
- Log Fetching: Parallel RPC requests across multiple endpoints
- Transaction Analysis: Decode transactions with signature lookup
- Account Operations: Balance, transactions, token transfers
- Contract Tools: ABI fetching, source code, verification status
- Type Conversions: Wei/Gwei/Eth, hex/dec, checksums, hashing
- RPC Commands: Direct blockchain calls (call, block, storage, etc.)
- ENS Resolution: Resolve names to addresses and reverse lookup
- Gas Oracle: Real-time gas prices from Etherscan
- Simulation: Transaction simulation via cast, Tenderly, or debug RPC
- Tenderly Integration: Virtual testnets, contracts, alerts, and actions
- Address Book: Save and lookup addresses by label
- Self-Updating: Check for updates and auto-install
- Multi-chain: Ethereum, Polygon, Arbitrum, Optimism, Base, BSC, Avalanche
- Price Aggregation: Multi-source prices from CoinGecko, DefiLlama, Alchemy, Moralis, Chainlink, Pyth, CCXT
- Portfolio Aggregation: Balance data from Alchemy, Dune SIM, Moralis
- NFT Aggregation: Holdings from Alchemy, CoinGecko, Moralis, Dune SIM
- Yield Aggregation: DeFi yields from DefiLlama and Curve
- Uniswap: V2/V3/V4 pool queries (on-chain + subgraph)
- Yearn: Vault and strategy data via Kong API
Installation
Download Binary
# macOS (Apple Silicon)
|
# macOS (Intel)
|
# Linux (x86_64)
|
# Linux (ARM64)
|
Install with Cargo
Or from source:
Quick Start
# Fetch Transfer events from USDC
# Analyze a transaction
# Get account balance
# Resolve ENS name
# Get current gas prices
Commands
Logs - Fetch Historical Events
# Fetch specific events
# Fetch all events (auto-fetches ABI from Etherscan), output as CSV
# Output to SQLite
# High concurrency with resume
Transaction - Analyze Transactions
# Analyze a transaction
# Show decoded input data
# Output as JSON
Account - Balance and History
# Get ETH balance
# Get token balance
# List recent transactions
# List token transfers
Contract - ABI and Source Code
# Get contract ABI
# Get source code
# Get creation transaction
Cast - Type Conversions and Hashing
# Unit conversions
# Hex/decimal
# Hashing
# Address tools
# ABI encode/decode
RPC - Direct Blockchain Calls
# Call a contract (read-only)
# Get block info
# Read storage slot
# Get contract code
# Get nonce
# Get transaction receipt
# Chain info
ENS - Name Resolution
# Resolve name to address
# Reverse lookup (address to name)
# Get resolver
# Compute namehash
Gas - Gas Oracle
# Get current gas prices
# Estimate confirmation time
Token - Token Operations
# Get token info
# Get top holders
Signature - Lookup Function/Event Signatures
# Lookup function by selector
# Lookup event by topic
Address Book
# Save an address with a label
# Lookup by label
# List all saved addresses
# Remove an address
Simulate - Transaction Simulation
# Simulate a contract call
# Simulate with trace output
# Trace an existing transaction
# Use different backends
Tenderly - Virtual TestNets & API
Requires TENDERLY_ACCESS_KEY environment variable.
# List virtual testnets
# Create a vnet
# Get vnet RPC URL
# Set wallet balance on vnet
# List contracts
# List alerts
Endpoints - Manage RPC Endpoints
# List configured endpoints
# Add an endpoint
# Test an endpoint
# Remove an endpoint
Config - Configuration Management
# Initialize config with template
# Show config file path
# Show current config
# Set Etherscan API key
# Set Tenderly credentials
Update & Doctor
# Check for updates
# Auto-install latest version
# Check configuration and endpoint health
Price - Multi-Source Price Aggregation
Query token prices from multiple sources in parallel and get aggregated results.
# Get aggregated price for a token
# Query specific chain
# Query specific source
# LP token prices (Curve priority)
# Output formats
Portfolio - Multi-Source Balance Aggregation
# Get aggregated portfolio balances
# With options
NFTs - Multi-Source NFT Aggregation
# Get aggregated NFT holdings
# With options
Yields - DeFi Yield Aggregation
# Get DeFi yields
Uniswap - V2/V3/V4 Pool Queries
Query Uniswap pools via on-chain lens contracts and The Graph subgraph.
# On-chain queries (no API key needed)
# Subgraph queries (requires THEGRAPH_API_KEY)
# LP positions
# Well-known addresses
Kong - Yearn Finance Data
Query Yearn Finance vault and strategy data via the Kong GraphQL API.
# List vaults
# Get vault details
# User positions
# Strategies
# Prices
# TVL
# Reports (harvests)
Chainlink - Price Feeds
# Get current price (RPC-based, no API key needed)
# Historical price
# Get feed address
# List oracles
Multi-Chain Support
# Use --chain flag for other networks
# Supported chains:
# ethereum, polygon, arbitrum, optimism, base, bsc, avalanche
Configuration
Config file: ~/.config/ethcli/config.toml
# Set Etherscan API key (optional, increases rate limit)
= "YOUR_KEY"
# Add custom endpoints
[[]]
= "https://my-private-node.example.com"
= 10000000
= 1000000
= 100
Or via CLI:
Environment Variables
License
MIT