Optimism
Optimism
Optimism
Free tier covers personal projects. Pay-as-you-go scales without a card.
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.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 Optimism 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 percentiles over this single heuristic.