@rabby-wallet/rabby-api 0.6.15 → 0.6.16

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 CHANGED
@@ -275,5 +275,8 @@ export declare class OpenApiService {
275
275
  chainId?: string | undefined;
276
276
  isAll: boolean;
277
277
  }) => Promise<CollectionList[]>;
278
+ gasPriceStats: (chainId: string) => Promise<{
279
+ median: number;
280
+ }>;
278
281
  }
279
282
  export {};
package/dist/index.js CHANGED
@@ -716,6 +716,14 @@ export class OpenApiService {
716
716
  });
717
717
  return data;
718
718
  });
719
+ this.gasPriceStats = (chainId) => __awaiter(this, void 0, void 0, function* () {
720
+ const { data } = yield this.request.get('/v1/wallet/gas_price_stats', {
721
+ params: {
722
+ chain_id: chainId,
723
+ },
724
+ });
725
+ return data;
726
+ });
719
727
  this.store = store;
720
728
  this.adapter = adapter;
721
729
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.6.15",
3
+ "version": "0.6.16",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist"