Skip to main content

eth_maxPriorityFeePerGas

Returns the priority fee needed for inclusion in the next block on the Base network. This method is essential for EIP-1559 transactions, helping you determine the appropriate tip to incentivize miners.

Parameters​

None required - this method takes no parameters.

Returns​

QUANTITY - The hex-encoded priority fee per gas in wei needed for inclusion in the next block.

Implementation Example​

curl -X POST https://api-base-mainnet.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_maxPriorityFeePerGas",
"params": [],
"id": 1
}'

Response Example​

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

The result 0x77359400 represents 2,000,000,000 wei (2 gwei) as the suggested priority fee.


Need help? Contact our support team or check the Base documentation.