ProviderError: Provider does not have a request or send method to use

        const web3authProvider = web3auth.provider;

        if (web3authProvider) {
            const web3 = new Web3(web3authProvider);
            const address = (await web3.eth.getAccounts())[0];
            alert(address);
        }
    };

i can’t get wallet address of the loggedIn user

1 Like

Hi @abdellatif, can you furnish the details of the SDK and the version of the SDK you are currently using?

Maybe the same error as me ProviderError : 600 : Provider does not have a request or send method to use. Using Firebase X Google JWT

Check in your package.json if the web3 dependency is version 4 or +. version 1.8.2 works well for me.

1 Like
    "@walletconnect/legacy-client": "^2.0.0",
    "@walletconnect/sign-client": "^2.8.3",
    "@web3auth/base": "^6.1.1",
    "@web3auth/base-provider": "^6.1.1",
    "@web3auth/metamask-adapter": "^6.1.1",
    "@web3auth/modal": "^6.1.1",
    "@web3auth/openlogin-adapter": "^6.1.1",
    "@web3auth/torus-evm-adapter": "^6.1.1",
    "@web3auth/torus-wallet-connector-plugin": "^6.1.3",
    "web3": "^4.0.1"

okay thanks, It looks similar, i will check it out

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