Error: Provided chainId "1" must match the active chainId "5"

we execute simple transaction using zerodev paymaster that time error. i create a web3auth client id that time select mainnet and select network WEB3AUTH_NETWORK.MAINNET.

Error: Provided chainId “1” must match the active chainId “5”
at getEthJsonRpcError (errors.ts:188:1)
at Object.internal (errors.ts:52:1)
at provider.sendAsync (INetworkController.ts:125:1)
at async provider.request (INetworkController.ts:149:1)

how to get chain id 1 ?

@limbachiyachintan500 please share the web3auth initialisation snippet along with the chainConfig that you pass.

Hey @maharshi ,

chainConfig: {
chainNamespace: CHAIN_NAMESPACES.EIP155,
chainId: “0x1”,
rpcTarget: “https://rpc.ankr.com/eth”,
displayName: “Ethereum Mainnet”,
blockExplorer: “https://etherscan.io”,
ticker: “ETH”,
tickerName: “Ethereum”,
}
can you i put chainConfig coreKitInstance in ?. And i am this version use @web3auth/mpc-core-kit": “^1.1.0”.

const selectedNetwork = WEB3AUTH_NETWORK.MAINNET;
const clientidweb3 = process.env.REACT_APP_WEB3AUTH_CLIENTID;

const coreKitInstance = new Web3AuthMPCCoreKit({
web3AuthClientId: clientidweb3 as string,
web3AuthNetwork: selectedNetwork,
uxMode: “popup”,
});

Sorry, my bad. Plug n Play was attached as the tag to this issue hence I asked for the chainConfig.
Let me re-tag this issue.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.