The method web3_clientVersion does not exist/is not available

I tried to deploy a simple contract(default contract when init harhat) with harhat to baobab network but it raise

ProviderError: The method web3_clientVersion does not exist/is not available

hardhat.config.js

module.exports = {
  solidity: "0.5.16",
  networks: {
    baobab: {
      url: ''https://api.baobab.klaytn.net:8651'',
      accounts: [process.env.PRIVATE_KEY]
    }
  },
};

Cmd to run: `npx hardhat run scripts/sample-script.js --network baobab`

You can use my demo repo to fastly debug: GitHub - SFzxc/klaytn_smart_contracts

Thansks

Is web3 enabled in node config and supported ?!

Thanks for filing an issue and sorry for the late reply.

It seems that ‘web3_clientVersion’ is not supported on the Klaytn Node, but it has ‘eth_clientVersion’ or ‘klay_clientVersion’.

Please refer to this.

Sorry, the answer is not enough to help you.

I will tell the issue to our core developers.

Thanks.

1개의 좋아요