Skip to main content
POST
/
b9b0fb92029d58b396139a9e89cf479b
eth_maxPriorityFeePerGas
curl --request POST \
  --url https://nd-907-114-772.p2pify.com/b9b0fb92029d58b396139a9e89cf479b \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_maxPriorityFeePerGas",
  "params": []
}
'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": "aSDinaTvuI8gbWludGxpZnk="
}
Cronos API method that returns an estimate of the current priority fee per gas. This fee is the tip that users may pay miners,post-merge, to validators on top of the base fee to incentivize the inclusion of their transactions in a block. This method helps users adjust their transaction fees in a dynamic market, ensuring transactions are processed promptly without overpaying.
Get your 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

const ethers = require('ethers');
const NODE_URL = "CHAINSTACK_NODE_URL";
const provider = new ethers.JsonRpcProvider(NODE_URL);

const estimatePriorityFee = async () => {
  const priorityFeePerGas = await provider.getFeeData();
  console.log(`Estimated priority fee per gas: ${priorityFeePerGas.maxPriorityFeePerGas}`);
};

estimatePriorityFee();

Use Case

A practical use case for eth_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
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:eth_maxPriorityFeePerGas
params
array

Response

200 - application/json

The estimated max priority fee per gas

jsonrpc
string
id
integer
result
string<byte>
Last modified on June 25, 2026