One command line for every chain
A fast, scriptable interface to the Spectrum API. Query blocks, gas, balances, prices, DeFi yields, NFTs, ENS and raw JSON-RPC across 20+ chains, all from your terminal, all with one consistent syntax. JSON by default, human on request.
20+
Chains, one command
Query any network with a single consistent syntax
JSON
by default
Pipes cleanly into jq and scripts
Install to first query in three commands
Install the package, point it at your API, and you are querying any chain, with output ready to pipe.
JSON by default
Raw JSON on stdout that pipes cleanly into jq and scripts. Add --human for aligned tables when you want to read it.
One syntax, every chain
spectrum <namespace> <command> across 20+ networks. Switch chains with --chain, or set a default once.
Built for agents
spectrum commands emits the entire machine-readable catalog: every command with a full JSON Schema, in a single call.
Fast & scriptable
Meaningful exit codes, automatic retries and response caching built in. Configure once, query everywhere.
One command away from any answer
Prices, balances, yields, DeFi quotes, ENS and raw RPC. A taste of what the same syntax gets you across every namespace.
Get a token price
Fetch the latest USD price for any token.
$ spectrum prices price ETH{ "priceUsd": 3421.58 }Check a wallet balance
Read the native balance of an address on any chain.
$ spectrum tokens balance 0xd8dA…{ "balance": "12.84", "symbol": "ETH" }Find the best yield
Rank lending and vault yields for a token.
$ spectrum yields best --token USDC{ "protocol": "aave-v3", "apy": "6.12%" }Resolve an ENS name
Look up the address behind an ENS name.
$ spectrum ens resolve vitalik.eth0xd8dA6BF2…96045Compare gas across chains
See current gas fees side by side.
$ spectrum core gas-comparison{ "ethereum": 12, "base": 0.04 }Quote a Uniswap v3 swap
Price a swap route before you execute it.
$ spectrum defi uniswap-v3-quote{ "amountOut": "0.298 WETH" }Pipe straight into jq
Extract a single field with standard JSON tooling.
$ spectrum prices price ETH | jq .priceUsd3421.58Raw JSON-RPC, any chain
Send any JSON-RPC method to a node.
$ spectrum rpc send eth_blockNumber{ "result": "0x14a1f8b" }From install to first call in one line
Create a free account, grab your API URL, and install the CLI. Every chain, one consistent syntax.
$ npm install -g @spectrumnodes/cliFree tier included · No credit card required
