Skip to content

Commit f37a6d7

Browse files
committed
feat(transactions): [getGasPercentiles] Add method.
1 parent 66b85c8 commit f37a6d7

File tree

5 files changed

+623
-325
lines changed

5 files changed

+623
-325
lines changed

dist/web3data.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/web3data.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/transaction.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ class Transaction {
4646
}).then(onFulfilled, onError)
4747
}
4848

49+
getGasPercentiles(filterOptions) {
50+
return get(this.web3data, {
51+
endpoint: ENDPOINT,
52+
subendpoint: 'gas/percentiles',
53+
filterOptions
54+
}).then(onFulfilled, onError)
55+
}
56+
4957
getGasPrice() {
5058
return this.getGasPrediction().then(gasPrediction => {
5159
throwIf(

0 commit comments

Comments
 (0)