Polygon
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Polygon
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
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.Este método no acepta parámetros. Pasa un array vacío [].
| Tipo | Descripción |
|---|---|
| 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.
| Código | Mensaje | Causa |
|---|---|---|
-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.