POST
/
efb0a5eccd2caa5135eb54eba6f7f300
curl --request POST \
  --url https://optimism-mainnet.core.chainstack.com/efb0a5eccd2caa5135eb54eba6f7f300 \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "eth_maxPriorityFeePerGas",
  "id": 1
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": "<string>"
}

Optimism API method eth_maxPriorityFeePerGas queries the current maximum priority fee per gas. This method is particularly useful in periods of high network congestion to estimate the appropriate priority fee for a transaction.

Get you own node endpoint today

Start 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

This method does not require any parameters.

Response

  • result — the current maximum priority fee per gas, returned as a hexadecimal string.

Use case

The eth_maxPriorityFeePerGas method is essential for:

  • Wallets and transaction builders that dynamically adjust transaction fees to ensure timely inclusion in a block.
  • Users and services looking to estimate transaction costs more accurately during periods of network congestion.
  • Developers and analysts monitoring Optimism network fee dynamics.

Body

application/json
jsonrpc
string
default:2.0
required
method
string
default:eth_maxPriorityFeePerGas
required
id
integer
default:1
required

Response

200 - application/json
Current maximum priority fee per gas
jsonrpc
string
id
integer
result
string