Skip to content

Commit afab3e3

Browse files
Merge pull request #53 from web3data/feat/transactions/getGasPercentiles
Feat/transactions/get gas percentiles
2 parents 30088f4 + 90a5413 commit afab3e3

File tree

6 files changed

+629
-347
lines changed

6 files changed

+629
-347
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: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 0 additions & 23 deletions
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
@@ -53,6 +53,14 @@ class Transaction {
5353
}).then(onFulfilled, onError)
5454
}
5555

56+
getGasPercentiles(filterOptions) {
57+
return get(this.web3data, {
58+
endpoint: ENDPOINT,
59+
subendpoint: 'gas/percentiles',
60+
filterOptions
61+
}).then(onFulfilled, onError)
62+
}
63+
5664
getGasPrice() {
5765
return this.getGasPrediction().then(gasPrediction => {
5866
throwIf(

0 commit comments

Comments
 (0)