I am getting this error when I intitialise Wbe3Auth

I am initialising like this

const web3auth = new Web3Auth({
clientId: {myClientId}, // Get your Client ID from the Web3Auth Dashboard
web3AuthNetwork: “sapphire_mainnet”, // Web3Auth Network
chainConfig: {
chainNamespace: CHAIN_NAMESPACES.EIP155,
chainId: “0x1”,
rpcTarget:
https://eth-mainnet.g.alchemy.com/v2/{myApiKey}”,
displayName: “Ethereum Mainnet”,
blockExplorer: “https://goerli.etherscan.io”,
ticker: “ETH”,
tickerName: “Ethereum”,
},
});

The above error is thrown repetitively.

@venkumj1234 Welcome Aboard!

As per the error thrown, you must authenticate your request with an API key. Ensure you are using the right API key or generate a new one in Alchemy for the rpctarget. You may try using any of the standard RPC URL instead of yours to check if the issue is in your RPC URL:

The API key is working fine as I have used it in other projects as well. The issue is not because of the rpcUrl imo.

This is from wallet connect. Pls check the walletconnect projectId that you’re using and check on their dashboard.

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