switch
Switch the active chain by name or ID.
Syntax
Section titled “Syntax”switch <networkNameOrId>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
networkNameOrId |
chain |
Chain name (e.g. ethereum) or numeric chain ID |
Examples
Section titled “Examples”# Switch by chain nameswitch gnosis
# Switch by chain IDswitch 137