- Requires the wallet manager and its connector to be initialized.
- The wallet provider must have at least one connected address.
- Does nothing if the wallet provider is already on the desired chain.
Package: core
Defined in: core.ts:589
WalletProvider
required
wallet provider to switch.
string | SwitchableChain
required
target chain as a chain ID string or SwitchableChain object.
void
required
A promise that resolves once the chain switch is complete.