zksync-cli config chains

Configure custom chains to use with zksync-cli.
zksync-cli config chains

Description

Specify your own chain configuration by adding or editing custom chains to use. Run the zksync-cli config chains command to display a list of configured chains along with an option to Add a new chain.

When adding a new chain, the CLI prompts you with questions for the new chain data.

idrequired
number

The unique ID of the network. Example: 324 for ZKsync Era Mainnet.

namerequired
string

The name of the chain for reference.

networkrequired
string

The ID to reference the chain when using the --chain option with other zksync-cli commands.

rpc urlrequired
string

The RPC URL for the network.

explorer url
URL

The URL to the Block Explorer for the network.

verification api url
URL

The URL to the verification API for verifying smart contracts.

l1 chain
chain

The chain data for the L1 the L2 chain is connected to.


Made with ❤️ by the ZKsync Community