cast-chain - Get the symbolic name of the current chain.
cast chain
[options]
Get the symbolic chain name from the RPC endpoint we are connected to.
{{#include ../common/rpc-url-option.md}}
{{#include common-options.md}}
-
Get the chain name when talking to
$RPC
:cast chain --rpc-url $RPC
-
Get the chain name when
$ETH_RPC_URL
is set:cast chain