Skip to main content
Switches the active chain. The user confirms the switch in the popup.

Request

Parameters

`0x${string}`
required
Hex-encoded chain ID. Must be in appChainIds.

Returns

null on success.

Errors

Mini App constraint

Inside a Mini App, the SDK forwards wallet_switchEthereumChain normally, but the host iframe may reject it. Mini Apps inherit the active chain from the Startale App host; the host controls whether a switch is permitted. Treat a 4200 response in a Mini App context as a host-enforced restriction, not an SDK limitation.