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