
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
@rainbow-me/fee-suggestions
Advanced tools
JavaScript library that suggest fees on Ethereum after EIP-1559 using historical data using ethers.js
The function suggestFees() is a utility function written in Javascript and it's intended to use with an ethers.js provider.
It returns an object containing:
maxBaseFee and maxPriorityFee suggestionsbaseFeeTrend indicatorcurrentBaseFee which is the current block base feeconfirmationTimeByPriorityFee an object containing estimated times of confirmation by priority fee chosenblocksToConfirmationByPriorityFee an object containing estimated blocks of wait for a confirmation by priority fee chosenblocksToConfirmationByBaseFee an object containing estimated blocks of wait for a confirmation by base fee chosenimport { JsonRpcProvider } from '@ethersproject/providers';
import { suggestFees } from './src';
const main = async() => {
const provider = new JsonRpcProvider(`https://ropsten.infura.io/v3/${YOUR_API_KEY}`);
const ret = await suggestFees(provider);
console.log('Result: ', ret);
}
main();
In addition, you can use specific methods to get maxBaseFee and maxPriorityFee specific data.
import { JsonRpcProvider } from '@ethersproject/providers';
import { suggestFees } from './src';
const main = async() => {
const provider = new JsonRpcProvider(`https://ropsten.infura.io/v3/${YOUR_API_KEY}`);
const fromBlock = 'latest' // the block that you want to run the estimations from
const blockCountHistory = 100 // the quantity of blocks you want to take in account for the estimation
const ret = await suggestMaxBaseFee(provider, fromBlock, blockCountHistory);
console.log('Result: ', ret);
}
main();
import { JsonRpcProvider } from '@ethersproject/providers';
import { suggestFees } from './src';
const main = async() => {
const provider = new JsonRpcProvider(`https://ropsten.infura.io/v3/${YOUR_API_KEY}`);
const fromBlock = 'latest' // the block that you want to run the estimations from
const ret = await suggestMaxPriorityFee(provider, fromBlock, blockCountHistory);
console.log('Result: ', ret);
}
main();
The suggestMaxBaseFee estimations code is 100% based on the work of @zsfelfoldi published at https://github.com/zsfelfoldi/feehistory/
FAQs
JavaScript library that suggest fees on Ethereum after EIP-1559 using historical data using ethers.js
The npm package @rainbow-me/fee-suggestions receives a total of 171 weekly downloads. As such, @rainbow-me/fee-suggestions popularity was classified as not popular.
We found that @rainbow-me/fee-suggestions demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.