Skip to main content
Version: 0.96.0

chains

Supported chain families:
EVM iconEVMSolana iconSolanaAptos iconAptos

List and lookup CCIP-supported chains with their identifiers, chain selectors, and chain family.

Synopsis

Bash
ccip-cli chains [identifier] [options]

Description

The chains command provides chain identifier mappings for CCIP-supported networks. Each chain has:

  • Name: Internal chain identifier (e.g., ethereum-mainnet)
  • Chain ID: Native chain identifier (e.g., 1 for Ethereum)
  • Chain Selector: Unique CCIP identifier used in cross-chain messaging

Chain data is sourced from the CCIP Directory. Use this command to find the correct identifiers before using other CLI commands like send, show, or laneLatency.

Arguments

ArgumentTypeRequiredDescription
[identifier]stringNoChain name, chainId, or selector for single chain lookup

When an identifier is provided, displays detailed information for that chain. Without an identifier, lists all chains.

Options

Filter Options

OptionAliasTypeDescription
--family-stringFilter by chain family: EVM, SVM, APTOS, SUI, TON
--mainnet-booleanShow only mainnet chains
--testnet-booleanShow only testnet chains
--search-sstringSearch chains by name or display name

Output Options

OptionAliasTypeDescription
--count-booleanOutput chain count only
--field-stringExtract a single field value (for scripting)
--interactive-ibooleanInteractive search with type-ahead filtering

See Configuration for global options (--format, etc.).

Command Builder

Build your chains command interactively:

Unknown command: chains

Available commands: send, show, manual-exec

Examples

List all supported chains

Bash
ccip-cli chains

Lookup a specific chain by name

Bash
ccip-cli chains ethereum-mainnet

Output:

Name:        ethereum-mainnet
DisplayName: Ethereum
Selector: 5009297550715157269
ChainId: 1
Family: EVM
Testnet: false
Supported: Yes

Lookup by chain selector

Bash
ccip-cli chains 5009297550715157269

Lookup by chain ID

Bash
ccip-cli chains 1

Filter by chain family

Bash
# List all EVM chains
ccip-cli chains --family EVM

# List all Solana chains
ccip-cli chains --family SVM

Filter by network type

Bash
# Mainnets only
ccip-cli chains --mainnet

# Testnets only
ccip-cli chains --testnet

Search for chains

Bash
# Find chains with "arbitrum" in the name
ccip-cli chains -s arbitrum

# Find chains by partial chain ID
ccip-cli chains -s 42161

Combine filters

Bash
# EVM mainnets only
ccip-cli chains --family EVM --mainnet

Count chains

Bash
# Total supported chains
ccip-cli chains --count

# Count EVM testnets
ccip-cli chains --family EVM --testnet --count

Extract specific field for scripting

Bash
# Get chain selector for use in scripts
SELECTOR=$(ccip-cli chains ethereum-mainnet --field chainSelector)
echo $SELECTOR
# Output: 5009297550715157269

JSON output

Bash
ccip-cli chains ethereum-mainnet --format json

Output:

JSON
{
"chainId": 1,
"chainSelector": "5009297550715157269",
"name": "ethereum-mainnet",
"family": "EVM",
"networkType": "MAINNET",
"displayName": "Ethereum",
"environment": "mainnet"
}

Interactive search mode

Bash
ccip-cli chains -i

Provides type-ahead filtering to find chains by name.

Output Fields

List Output

ColumnDescription
DisplayNameHuman-readable chain name (e.g., Ethereum)
NameInternal chain identifier (e.g., ethereum-mainnet)
SelectorCCIP chain selector (unique identifier)
FamilyChain family (EVM, SVM, APTOS, SUI, TON)
NetworkEnvironment (mainnet or testnet)
SupportedWhether chain is supported by CCIP

Single Chain Output

FieldDescription
NameInternal chain identifier (e.g., ethereum-mainnet)
DisplayNameHuman-readable chain name
SelectorCCIP chain selector (use in --dest, --source)
ChainIdNative chain ID
FamilyChain family
TestnetWhether chain is a testnet
SupportedWhether chain is supported by CCIP

Chain Families

FamilyDescription
EVMEthereum Virtual Machine chains
SVMSolana Virtual Machine (Solana)
APTOSAptos blockchain
SUISui blockchain
TONTON blockchain

Data Source

Chain data is fetched from the CCIP docs configuration API, which reflects the current supported chains in the CCIP Directory. The API includes search and filtering capabilities.

Data is cached for 5 minutes to reduce API calls. The SDK's networkInfo() provides canonical chain data (name, chainId, selector, family), while the API provides display names.

See Also

  • CCIP Directory - Official supported chains reference
  • send - Send a cross-chain message (use chain name or selector)
  • show - Display details of a CCIP request
  • laneLatency - Query lane latency between chains
  • Configuration - RPC and output format options

Exit Codes

CodeMeaning
0Success - chain(s) found and displayed
1Error (chain not found, API failure)

Use in scripts:

Bash
ccip-cli chains ethereum-mainnet --field chainSelector && echo "Found" || echo "Not found"