Optimism
Optimism
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Optimism
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 per unit of gas, denominated in wei of ETH — for an EIP-1559 transaction on OP Mainnet. OP Mainnet is an OP Stack rollup at chain ID 10 (0xa) that uses ETH for gas and supports the EIP-1559 fee market, so this heuristic gives you a sensible maxPriorityFeePerGas value derived from recent block history. With ~2s blocks and a single sequencer, tips on OP Mainnet are usually very small. Call it at https://optimism.therpc.io/YOUR_API_KEY to seed the tip portion of your fee fields.
maxPriorityFeePerGas field when building an EIP-1559 (type-2) transaction for OP Mainnet before signing and broadcasting it via eth_sendRawTransaction.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 Optimism 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 percentiles over this single heuristic.