@rabby-wallet/rabby-api 0.8.7 → 0.9.0
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 +4 -0
- package/dist/index.js +9 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -203,6 +203,15 @@ export class OpenApiService {
|
|
|
203
203
|
});
|
|
204
204
|
this.gasMarket = (options) => __awaiter(this, void 0, void 0, function* () {
|
|
205
205
|
const { data } = yield this.request.get('/v1/wallet/gas_market', {
|
|
206
|
+
params: {
|
|
207
|
+
chain_id: options.chainId,
|
|
208
|
+
custom_price: options.customGas,
|
|
209
|
+
},
|
|
210
|
+
});
|
|
211
|
+
return data;
|
|
212
|
+
});
|
|
213
|
+
this.gasMarketV2 = (options) => __awaiter(this, void 0, void 0, function* () {
|
|
214
|
+
const { data } = yield this.request.post('/v2/wallet/gas_market', {
|
|
206
215
|
params: {
|
|
207
216
|
chain_id: options.chainId,
|
|
208
217
|
custom_price: options.customGas,
|