Networks and environments
Chain ID rules
Use Gray3 chain ID strings; testnets are separate ids, not a network flag.
Overview
Everywhere you pass a network, use a Gray3 chain ID string—not a numeric EVM chain id alone, and not a network=mainnet|testnet flag.
Rules
- Mainnets use short ids:
ethereum,base,bitcoin,solana, … - Testnets are separate ids:
ethereum-sepolia,base-sepolia,solana-devnet, … - Pass the id as
chainId(or inchainIds/fromChainId/toChainId) - Discover available ids with
GET /v1/chainsfor your project plan - Catalog entries may include
isTestnetandmainnetIdfor siblings
curl -sS "https://blockchain.gray3.io/v1/chains" \
-H "X-Gray-Project-Id: $GRAY_PROJECT_ID" \
-H "Authorization: Bearer $GRAY_SECRET_KEY"// Correct — separate testnet id
await gray.portfolio.get({
chainId: "ethereum-sepolia",
address: "0x…",
});Families
Ids span EVM, UTXO, Solana, Tron, Sui, Aptos, Movement, Near, Stellar, Hedera, Gram, Polkadot, Bittensor, Cosmos, Algorand, Kaspa, Filecoin, VeChain, Stacks, Cardano, XRPL, Monero, and more. Some assets (for example Stellar, Hedera, UTXO coins) are mainnet-only—no testnet sibling in the catalog.
Custom EVM
Custom networks use your own RPC and must not collide with Gray3 catalog ids. They are SDK-side; Cloud portfolio routes do not proxy arbitrary custom RPCs. See the Cloud API / SDK custom-chain docs.
Workspace labels map to the same ids: Align with Cloud chain ids.