eth_maxPriorityFeePerGas
Polygon / https://triport.io/polygon
Minimum tier: Free
Last updated:
eth_maxPriorityFeePerGas returns a suggested priority fee — the tip paid
directly to the validator on top of the protocol base fee — for inclusion in an
upcoming Polygon block. The value is a 0x-prefixed hexadecimal quantity
denominated in wei. It is the EIP-1559 complement to
eth_gasPrice: where eth_gasPrice gives a single legacy
gas price, this method isolates just the tip portion so you can build the
maxPriorityFeePerGas field of a type-2 (EIP-1559) transaction.
Since the Bhilai hardfork, EIP-1559 is the primary fee model on Polygon, and
this method is the canonical way to obtain a tip suggestion rather than relying
on the legacy eth_gasPrice. The returned value is a node-side suggestion
derived from recent block history, not a guarantee of inclusion. To build a full
fee envelope, read the pending block's baseFeePerGas and add the tip returned
here, typically setting maxFeePerGas ≈ baseFee * 2 + tip to absorb base-fee
swings between blocks.
Polygon produces a block roughly every ~2.1 seconds, and the suggested tip
can change block-to-block during volatile demand. Re-query it close to the moment
you sign and broadcast so the tip reflects current network conditions. The method
takes no parameters and is available on the free tier under the
polygon_read_rpc scope.
Parameters
This method takes no parameters.
Returns
| Field | Type |
|---|---|
| result | object |
Examples
curl https://triport.io/polygon \
-X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer <api-key>' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_maxPriorityFeePerGas","params":[]}'const res = await fetch("https://triport.io/polygon", {
method: "POST",
headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
body: JSON.stringify({
"jsonrpc": "2.0",
"id": 1,
"method": "eth_maxPriorityFeePerGas",
"params": []
}),
});
const data = await res.json();import requests
resp = requests.post(
"https://triport.io/polygon",
headers={"Authorization": "Bearer <api-key>"},
json={"jsonrpc":"2.0","id":1,"method":"eth_maxPriorityFeePerGas","params":[]},
)
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Chain: Polygon.
- Clusters: mainnet.
- Credit cost: 1 per call.
FAQ
- What does eth_maxPriorityFeePerGas do?
- Returns the suggested EIP-1559 priority fee (validator tip) for Polygon, in wei, as a hex-encoded string.
- How many credits does eth_maxPriorityFeePerGas cost?
- eth_maxPriorityFeePerGas costs 1 credit(s) per call on Triport by default.
- Is eth_maxPriorityFeePerGas available over WebSocket?
- eth_maxPriorityFeePerGas is an HTTP JSON-RPC method.