Skip to main content

eth_maxPriorityFeePerGas

The eth_maxPriorityFeePerGas command returns an estimated fee per gas, indicating the amount you can pay as a priority fee (tip) in order to have a transaction in the current block.

The most common use case for eth_maxPriorityFeePerGas is to set the maxFeePerGas for your subsequent transactions.

Signature

eth_maxPriorityFeePerGas() -> {}

result is hex value of the priority fee needed to be included in a block.

Example Request and Result for eth_maxPriorityFeePerGas

Request

curl -X POST --data '{
"jsonrpc":"2.0",
"id" :1,
"method" :"eth_maxPriorityFeePerGas",
"params" :[]
}' -H 'content-type:application/json;' https://ava-mainnet.blastapi.io/<project-id>/ext/bc/C/rpc

Result

{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0"
}