@rabby-wallet/rabby-api 0.9.44 → 0.9.45-alpha
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/dist/index.d.ts +3 -0
- package/dist/index.js +8 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -52,6 +52,9 @@ export declare class OpenApiService {
|
|
|
52
52
|
excluded_protocol_ids: string[];
|
|
53
53
|
excluded_chain_ids: string[];
|
|
54
54
|
}) => Promise<TotalBalanceResponse>;
|
|
55
|
+
get24hTotalBalance: (address: string) => Promise<{
|
|
56
|
+
total_usd_value: number;
|
|
57
|
+
}>;
|
|
55
58
|
getPendingCount: (address: string) => Promise<{
|
|
56
59
|
total_count: number;
|
|
57
60
|
chains: ChainWithPendingCount[];
|
package/dist/index.js
CHANGED
|
@@ -134,6 +134,14 @@ export class OpenApiService {
|
|
|
134
134
|
});
|
|
135
135
|
return data;
|
|
136
136
|
});
|
|
137
|
+
this.get24hTotalBalance = (address) => __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
const { data } = yield this.request.get('/v1/user/total_balance_24h', {
|
|
139
|
+
params: {
|
|
140
|
+
id: address,
|
|
141
|
+
},
|
|
142
|
+
});
|
|
143
|
+
return data;
|
|
144
|
+
});
|
|
137
145
|
this.getPendingCount = (address) => __awaiter(this, void 0, void 0, function* () {
|
|
138
146
|
const { data } = yield this.request.get('/v1/wallet/pending_tx_count', {
|
|
139
147
|
params: {
|