Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
none
Response
quantity
— the estimated priority fee per gas needed, represented as a hexadecimal string.
eth_maxPriorityFeePerGas
code examples
Use Case
A practical use case foreth_maxPriorityFeePerGas
using ethers.js
is to calculate transaction fees dynamically for applications and wallets to accurately estimate the cost of transactions, especially during periods of high network congestion. This method ensures transactions are confirmed promptly without overpaying. By fetching the current priority fee (maxPriorityFeePerGas
) and the maximum fee per gas (maxFeePerGas
), applications can dynamically calculate the total transaction fee required for prompt processing under the current network conditions.Body
application/json
Response
200 - application/json
The estimated max priority fee per gas
The response is of type object
.