@rabby-wallet/rabby-api 0.6.21 → 0.6.22-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,25 +1,25 @@
1
- # rabby-api
2
-
3
- ## Install
4
-
5
- ```bash
6
- npm install rabby-api @debank/common
7
- ```
8
-
9
- ## Usage
10
-
11
- ```ts
12
- import { OpenApiService } from 'rabby-api';
13
-
14
- const service = new OpenApiService({
15
- store: {
16
- host: 'https://api.rabby.io'
17
- }
18
- });
19
-
20
- // init service
21
- await service.init();
22
-
23
- // call api
24
- await service.getTotalBalance('0x1234');
25
- ```
1
+ # rabby-api
2
+
3
+ ## Install
4
+
5
+ ```bash
6
+ npm install @rabby-wallet/rabby-api @debank/common
7
+ ```
8
+
9
+ ## Usage
10
+
11
+ ```ts
12
+ import { OpenApiService } from 'rabby-api';
13
+
14
+ const service = new OpenApiService({
15
+ store: {
16
+ host: 'https://api.rabby.io',
17
+ },
18
+ });
19
+
20
+ // init service
21
+ await service.init();
22
+
23
+ // call api
24
+ await service.getTotalBalance('0x1234');
25
+ ```