Defined in EIP-3326Documentation Index
Fetch the complete documentation index at: https://base-a060aa97-meyer9-move-azul-to-top-of-upgrades.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Requests that the wallet switches its active Ethereum chain to one of the chains already added to the wallet.
Parameters
A 0x-prefixed hexadecimal string representing the chain ID of the chain to switch to.
Returns
Returns null if successful.
Error Handling
| Code | Message | Description |
|---|---|---|
| 4001 | User rejected the request | User denied switching chains |
| 4100 | Requested method not supported | The method is not supported by the wallet |
| 4902 | Unrecognized chain ID | The requested chain has not been added to the wallet |
If the chain is not already added to the wallet, use
wallet_addEthereumChain first.