eth_maxPriorityFeePerGas
Returns a fee per gas that is an estimate of how much you can pay as a priority fee, or "tip", to get a transaction included in the current block.
Generally you will use the value returned from this method to set the maxFeePerGas in a subsequent transaction that you are submitting. This method was introduced with EIP 1559.
None
QUANTITY(hex string)
- the estimated priority fee per gas.curl
TypeScript
curl https://api.blockvision.org/v1/<api key> \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_maxPriorityFeePerGas",
"params": [],
"id": 1
}'
import { BlockVisionProvider, BvNetwork } from 'blockvision.js'
// Optional parameters, but default to eth-mainnet and default api-key.
const bv = new BlockVisionProvider(BvNetwork.ARB_MAINNET)
// Access BlockVision Enhanced API requests
bv.getMaxPriorityFeePerGas().then(console.log)
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x3b9aca00"
}
Last modified 1mo ago