Skip to content
Docs

Chains

Chain IDs in requests

Gray3 uses stable string chain IDs such as ethereum and solana in every request.

Overview

chainId is a stable slug (for example ethereum, solana, bitcoin). It appears in query strings, JSON bodies, and multi-route comma lists. Use the id field from GET /v1/chains—never pass user-facing names like “Ethereum Mainnet” or tickers alone.

Where chainId is required

  • Query: portfolio, balance, activity, prices, nfts, gas/fees, transactions/receipt
  • Body: transactions/prepare, gas/estimate, swap/quote, defi/actions/prepare
  • Multi: chainIds=ethereum,base on portfolio/defi multi routes

Testnet rows include isTestnet: true and often mainnetId (for example ethereum-sepolia has mainnetId: "ethereum"). Use that to grey out mainnet-only features when the user selects a testnet wallet while still showing which production network it mirrors.

family and pathSlots

family (evm, utxo, etc.) hints at address format and signing. pathSlots tells Wallet SDKs how many HD path segments are user-editable—important when deriving addresses consistently across chains.