UNPKG

@keplr-ewallet/ewallet-sdk-eth

Version:
9 lines 302 B
import { toHex } from "viem"; export async function switchChain(chainId) { const provider = await this.getEthereumProvider(); await provider.request({ method: "wallet_switchEthereumChain", params: [{ chainId: toHex(chainId) }], }); } //# sourceMappingURL=switch_chain.js.map