@rabby-wallet/rabby-api 0.9.16 → 0.9.17

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
@@ -1125,5 +1125,15 @@ export declare class OpenApiService {
1125
1125
  isBlockedAddress: (id: string) => Promise<{
1126
1126
  is_blocked: boolean;
1127
1127
  }>;
1128
+ estimateGasUsd: ({ tx, origin, address, updateNonce, pending_tx_list, }: {
1129
+ tx: Tx;
1130
+ origin: string;
1131
+ address: string;
1132
+ updateNonce: boolean;
1133
+ pending_tx_list: Tx[];
1134
+ }) => Promise<{
1135
+ gas_used?: number;
1136
+ safe_gas_used?: number;
1137
+ }>;
1128
1138
  }
1129
1139
  export {};
package/dist/index.js CHANGED
@@ -1499,6 +1499,16 @@ export class OpenApiService {
1499
1499
  });
1500
1500
  return data;
1501
1501
  });
1502
+ this.estimateGasUsd = ({ tx, origin, address, updateNonce = false, pending_tx_list = [], }) => __awaiter(this, void 0, void 0, function* () {
1503
+ const { data } = yield this.request.post('/v1/wallet/estimate_gas', {
1504
+ tx,
1505
+ user_addr: address,
1506
+ origin,
1507
+ update_nonce: updateNonce,
1508
+ pending_tx_list,
1509
+ });
1510
+ return data;
1511
+ });
1502
1512
  if (store instanceof Promise) {
1503
1513
  store.then((resolvedStore) => {
1504
1514
  this.store = resolvedStore;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.9.16",
3
+ "version": "0.9.17",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [