Base
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Base
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 miner/sequencer tip — per unit of gas for EIP-1559 transactions, expressed in wei (ETH is the gas token on Base). The value is a heuristic the node derives from recent block history and is meant to be used as the maxPriorityFeePerGas field when assembling a type-2 transaction. Base is an OP Stack rollup with roughly 2-second blocks, so its tips are usually small, but they still climb during bursts of consumer-app and DEX activity. Call it against https://base.therpc.io/YOUR_API_KEY (Base mainnet, chain ID 8453 / 0x2105) with no parameters.
maxPriorityFeePerGas field when building an EIP-1559 transaction to send on Base, pairing it with a base-fee figure from eth_getBlockByNumber or eth_feeHistory.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 Base 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 heuristic value.