Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 581 Bytes

cast-chain.md

File metadata and controls

37 lines (22 loc) · 581 Bytes

cast chain

NAME

cast-chain - Get the symbolic name of the current chain.

SYNOPSIS

cast chain [options]

DESCRIPTION

Get the symbolic chain name from the RPC endpoint we are connected to.

OPTIONS

RPC Options

{{#include ../common/rpc-url-option.md}}

{{#include common-options.md}}

EXAMPLES

  1. Get the chain name when talking to $RPC:

    cast chain --rpc-url $RPC
  2. Get the chain name when $ETH_RPC_URL is set:

    cast chain

SEE ALSO

cast, cast chain-id