1 | # ARK - TypeScript Client
|
2 |
|
3 | <p align="center">
|
4 | <img src="./banner.png" />
|
5 | </p>
|
6 |
|
7 | > Lead Maintainer: [Brian Faust](https://github.com/faustbrian)
|
8 |
|
9 | ## Installation
|
10 |
|
11 | ```bash
|
12 | yarn add @arkecosystem/client
|
13 | ```
|
14 |
|
15 | ## Usage
|
16 |
|
17 | ```ts
|
18 | import { Connection } from "@arkecosystem/client";
|
19 |
|
20 | const init = async () => {
|
21 | const connection: Connection = new Connection("https://dwallets.ark.io/api");
|
22 |
|
23 | console.log(await connection.api("blocks").all())
|
24 | };
|
25 |
|
26 | init();
|
27 | ```
|
28 |
|
29 | See [tests](https://github.com/ArkEcosystem/javascript-client/tree/master/__tests__/resources) for more examples.
|
30 |
|
31 | ## Security
|
32 |
|
33 | If you discover a security vulnerability within this package, please send an e-mail to security@ark.io. All security vulnerabilities will be promptly addressed.
|
34 |
|
35 | ## Credits
|
36 |
|
37 | This project exists thanks to all the people who [contribute](../../contributors).
|
38 |
|
39 | ## License
|
40 |
|
41 | [MIT](LICENSE) © [ARK Ecosystem](https://ark.io)
|