Polygon
Polygon
Polygon
Free tier covers personal projects. Pay-as-you-go scales without a card.
eth_maxPriorityFeePerGas returns the node's suggested priority fee — the "tip" paid to validators on top of the base fee — per unit of gas for an EIP-1559 transaction, expressed in wei of the native MATIC. On Polygon, the PoS chain at https://polygon.therpc.io/YOUR_API_KEY (chain ID 137, 0x89), the node derives this figure as a heuristic from recent block history. Polygon supports EIP-1559, so the value is a practical starting point for setting maxPriorityFeePerGas; note that the chain enforces its own non-zero minimum priority fee, which the suggestion reflects.
maxPriorityFeePerGas field when building an EIP-1559 (type-2) MATIC transaction so it offers a competitive tip given current Polygon demand.This method takes no parameters. Pass an empty array [].
| Type | Description |
|---|---|
| string | Hex-encoded priority fee in wei. This is the node's heuristic — typically derived from recent block history. |
Try it live in the Polygon playground.
| Code | Message | Cause |
|---|---|---|
-32000 | method not supported | The connected network does not implement EIP-1559 and does not support this method. |
eth_gasPrice instead.eth_feeHistory with explicit reward percentiles over this single-number suggestion.