conflux-web-providers-ipc
This is a sub package of conflux-web.js
This is a IPC provider for conflux-web.js.
Please read the documentation for more.
Installation
Node.js
npm install conflux-web-providers-ipc
In the Browser
Build running the following in the conflux-web.js repository:
npm run-script build-all
Then include dist/conflux-web-providers-ipc.js
in your html file.
This will expose the ConfluxWebIpcProvider
object on the window object.
Usage
// in node.js
var ConfluxWebIpcProvider = require('conflux-web-providers-ipc');
var net = require(net);
var ipc = new ConfluxWebIpcProvider('/Users/me/Library/Ethereum/geth.ipc', net);