NethermindEth / nethermind

A robust execution client for Ethereum node operators.
https://nethermind.io/nethermind-client
GNU General Public License v3.0
1.28k stars 440 forks source link

IPC socket not working with IPC Provider in web3 and ethers.js #7704

Closed anhnhgutech closed 2 weeks ago

anhnhgutech commented 2 weeks ago

Description IPC socket not working with IPC Provider in web3 and ethers.js I tested IPC with IPC web3js, but that seems not to work.

const { Web3 } = require("web3");
const { IpcProvider } = require("web3-providers-ipc");

const web3 = new Web3(new IpcProvider("/data/ethereum/nethermind.ipc"));

web3.eth.getBlockNumber().then((data) => {
  console.log("data", data); // no response data
});
anhnhgutech commented 2 weeks ago

Fixed in https://github.com/NethermindEth/nethermind/pull/7714