Polygon
Polygon
Polygon
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
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.此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| 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.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-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.