Skip to content

Commit

Permalink
v2.0 (#24)
Browse files Browse the repository at this point in the history
* bump

* update readme with changes

* last line
  • Loading branch information
estebanmino authored Jan 25, 2022
1 parent 9af71fe commit 55ab6c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

The function `suggestFees()` is a utility function written in Javascript and it's intended to use with an [ethers.js](https://docs.ethers.io/v5/) provider.

It returns an object containing `maxBaseFee` and `maxPriorityFee` suggestions, `baseFeeTrend` indicator, `currentBaseFee` and `confirmationTimeByPriorityFee` object containing estimated times of confirmation by priority fee chosen.
It returns an object containing:
- `maxBaseFee` and `maxPriorityFee` suggestions
- `baseFeeTrend` indicator
- `currentBaseFee` which is the current block base fee
- `confirmationTimeByPriorityFee` an object containing estimated times of confirmation by priority fee chosen
- `blocksToConfirmationByPriorityFee` an object containing estimated blocks of wait for a confirmation by priority fee chosen
- `blocksToConfirmationByBaseFee` an object containing estimated blocks of wait for a confirmation by base fee chosen

### Usage

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@rainbow-me/fee-suggestions",
"description": "JavaScript library that suggest fees on Ethereum after EIP-1559 using historical data using ethers.js",
"version": "1.7.0",
"version": "2.0.0",
"main": "dist/index.js",
"license": "MIT",
"keywords": [
Expand Down

0 comments on commit 55ab6c8

Please sign in to comment.