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