0

I coded the below program:

var Web3 = require("web3");

var web3 = new Web3(new Web3.providers.HttpProvider('http://127.0.0.1:8545'))

console.log(web3.currentProvider);

console.log('Connected?:' + Web3.isConnected());

It shows:

"TypeError: Web3.isConnected is not function"

How to solve the issue?

Thank you very much.

web3 version: 1.3.3

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.