eth
eth_maxPriorityFeePerGas
Returns a suggested priority fee (tip) per gas for EIP-1559 transactions. This value represents the fee paid directly to the validator on top of the base fee.
Returns a suggested priority fee (tip) per gas for EIP-1559 transactions. This value represents the fee paid directly to the validator on top of the base fee.
Parameters
None.
Returns
string -- The suggested max priority fee per gas in wei as a hexadecimal string.
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_maxPriorityFeePerGas",
"params": [],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1"
}
TRY IT
Notes
- The result is denominated in wei.
- On PulseChain, the priority fee is typically very low since the network is not heavily congested.
- This method is used in conjunction with the block's
baseFeePerGasto calculate the totalmaxFeePerGasfor EIP-1559 (type 2) transactions. - A common pattern is:
maxFeePerGas = 2 * baseFeePerGas + maxPriorityFeePerGas.
