tweb3-providers-ipc
v0.1.0
Published
Module to handle tweb3 RPC connections over IPC sockets.
Downloads
6
Readme
tweb3-providers-ipc
This is a sub package of [tweb3.js][repo]
This is a IPC provider for [tweb3.js][repo].
Please read the [documentation][docs] for more.
Installation
Node.js
npm install tweb3-providers-ipc
In the Browser
Build running the following in the [tweb3.js][repo] repository:
npm run-script build-all
Then include dist/tweb3-providers-ipc.js
in your html file.
This will expose the Web3IpcProvider
object on the window object.
Usage
// in node.js
var Web3IpcProvider = require('tweb3-providers-ipc');
var net = require(net);
var ipc = new Web3IpcProvider('tmit.ipc', net);