Avalanche
Avalanche
¿Listo para usar esto en producción?
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
Avalanche
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 — for EIP-1559 transactions on the Avalanche C-Chain (chain ID 43114), where gas is paid in AVAX. The value comes back as a hex-encoded amount in wei and represents the node's heuristic for a tip that should get a transaction included promptly given recent block history. The C-Chain implements EIP-1559-style dynamic fees with a base fee plus a priority tip, so this call gives you a ready-made tip suggestion. Call it at https://avalanche.therpc.io/YOUR_API_KEY.
maxPriorityFeePerGas field when building an EIP-1559 transaction for the C-Chain, so your AVAX tip tracks current network conditions.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 Avalanche playground.
| Código | Mensaje | Causa |
|---|---|---|
-32000 | method not supported | The connected network does not implement EIP-1559 and does not support this method. |
method not supported. The Avalanche C-Chain does support dynamic fees, but if you target a network that does not, fall back to eth_gasPrice.eth_feeHistory with explicit percentiles instead of this single suggested value.