@rabby-wallet/rabby-api 0.8.7 → 0.9.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/dist/index.d.ts CHANGED
@@ -71,6 +71,10 @@ export declare class OpenApiService {
71
71
  comment: string;
72
72
  }>;
73
73
  gasMarket: (options: {
74
+ chainId: string;
75
+ customGas?: number;
76
+ }) => Promise<GasLevel[]>;
77
+ gasMarketV2: (options: {
74
78
  chainId: string;
75
79
  tx?: Tx;
76
80
  customGas?: number;
package/dist/index.js CHANGED
@@ -206,11 +206,18 @@ export class OpenApiService {
206
206
  params: {
207
207
  chain_id: options.chainId,
208
208
  custom_price: options.customGas,
209
- tx: options.tx,
210
209
  },
211
210
  });
212
211
  return data;
213
212
  });
213
+ this.gasMarketV2 = (options) => __awaiter(this, void 0, void 0, function* () {
214
+ const { data } = yield this.request.post('/v2/wallet/gas_market', {
215
+ chain_id: options.chainId,
216
+ custom_price: options.customGas,
217
+ tx: options.tx,
218
+ });
219
+ return data;
220
+ });
214
221
  this.getTx = (chainId, hash, gasPrice) => __awaiter(this, void 0, void 0, function* () {
215
222
  const { data } = yield this.request.get('/v1/wallet/get_tx', {
216
223
  params: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.8.7",
3
+ "version": "0.9.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [