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.
vjgee
January 9, 2024, 6:16pm
2
@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.
chai
January 12, 2024, 3:46am
4
This is from wallet connect. Pls check the walletconnect projectId that you’re using and check on their dashboard.
system
Closed
January 14, 2024, 3:47am
5
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.