UNPKG

468 BMarkdownView Raw
1# conflux-web-net
2
3This is a sub package of [ConfluxWeb.js][repo]
4
5This is the net package to be used in other [ConfluxWeb.js][repo] packages.
6
7## Installation
8
9```bash
10npm install conflux-web-net
11```
12
13## Usage
14
15```js
16import {Network} from 'conflux-web-net';
17
18const net = new Network(
19 'http://127.0.0.1:4546',
20 null,
21 options
22);
23```
24
25## Types
26
27All the typescript typings are placed in the types folder.
28
29[repo]: https://github.com/Conflux-Chain/ConfluxWeb