Skip to main content
Version: 0.96.0

laneLatency

Supported chain families:
EVM iconEVMSolana iconSolanaAptos iconAptos

Query real-time lane latency between source and destination chains.

Synopsis

Bash
ccip-cli laneLatency <source> <dest> [options]

Aliases: lane-latency

Shorthand: latency

Description

The laneLatency command queries the CCIP API to retrieve estimated delivery time for cross-chain messages between a source and destination chain. This helps developers understand expected latency for their CCIP transfers.

The latency estimate includes time for:

  • Source chain finality
  • DON (Decentralized Oracle Network) processing
  • Destination chain execution

Arguments

ArgumentTypeRequiredDescription
<source>stringYesSource network identifier (chainId, selector, or name). Example: ethereum-mainnet
<dest>stringYesDestination network identifier (chainId, selector, or name). Example: arbitrum-mainnet

Options

OptionTypeDefaultDescription
--api-urlstringhttps://api.ccip.chain.linkCustom CCIP API URL

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

note

This command requires API access. If --no-api flag is set, the command will fail with an error indicating that API access is required.

Command Builder

Build your laneLatency command interactively:

ccip-cli laneLatency Builder

Query real-time lane latency between source and destination chains

Required Arguments

These values are required to build the command

Source network (chain ID, selector, or name)

Destination network (chain ID, selector, or name)

Output Options

Control command output format

Custom CCIP API URL (defaults to api.ccip.chain.link)

Format for command output

Enable debug logging

Fill in required fields to generate command
Generated Command
ccip-cli laneLatency <source> <dest> --format pretty

Examples

Query latency between Ethereum and Arbitrum

Bash
ccip-cli laneLatency ethereum-mainnet arbitrum-mainnet

Query using chain selectors

Bash
ccip-cli laneLatency 5009297550715157269 4949039107694359620

Query using chain IDs

Bash
ccip-cli laneLatency 1 42161

Output as JSON for scripting

Bash
ccip-cli laneLatency ethereum-mainnet arbitrum-mainnet --format json

Use custom API endpoint

Bash
ccip-cli laneLatency ethereum-mainnet arbitrum-mainnet --api-url https://staging-api.example.com

Output

The command displays lane latency information in a table format:

FieldDescription
SourceSource network name and chain selector
DestinationDestination network name and chain selector
Estimated DeliveryHuman-readable estimated delivery time (e.g., ~20 minutes)
Latency (ms)Estimated latency in milliseconds

JSON Output

When using --format json, the output includes the estimated latency:

JSON
{
"totalMs": 1200000
}

The totalMs value represents the estimated delivery time in milliseconds (1200000ms = 20 minutes).

Behavior

  1. Resolves source and destination network identifiers to chain selectors
  2. Queries the CCIP API for lane latency information
  3. Displays results in the requested format (table, JSON, or log)

See Also

  • show - Display details of a CCIP request
  • send - Send a cross-chain message
  • Configuration - RPC and output format options

Exit Codes

CodeMeaning
0Success - latency information retrieved
1Error (network not found, API failure, invalid arguments)

Use in scripts:

Bash
ccip-cli laneLatency ethereum-mainnet arbitrum-mainnet --format json && echo "Success" || echo "Failed"