Skip to main content
POST
/
eth_maxPriorityFeePerGas
curl --request POST \
  --url https://monad-testnet.core.chainstack.com/9c5b265f20b3ea5df4f54f70eb74b800/ \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_maxPriorityFeePerGas",
  "params": []
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": "<string>"
}
Monad API method that returns a suggestion for the max priority fee per gas (tip) to use in EIP-1559 transactions. This method helps you determine an appropriate tip to incentivize validators to include your transaction.
Monad-specific behavior: Currently returns a hardcoded suggested fee of 2 gwei. This is temporary and will be updated with dynamic fee estimation in the future.
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

  • result — the suggested max priority fee per gas in wei, encoded as hexadecimal.

eth_maxPriorityFeePerGas code examples

const { ethers } = require("ethers");

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

async function getMaxPriorityFee() {
  const maxPriorityFee = await provider.send("eth_maxPriorityFeePerGas", []);
  console.log(`Max priority fee: ${parseInt(maxPriorityFee, 16)} wei`);
  console.log(`Max priority fee: ${ethers.formatUnits(maxPriorityFee, "gwei")} gwei`);
}

getMaxPriorityFee();

Use case

A practical use case for eth_maxPriorityFeePerGas is dynamically setting the priority fee for EIP-1559 transactions to ensure competitive inclusion times while avoiding overpaying during low-congestion periods.

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:eth_maxPriorityFeePerGas
params
any[]

Response

200 - application/json

The max priority fee per gas in wei.

jsonrpc
string
id
integer
result
string