Avalanche
Avalanche
Avalanche
El plan gratuito cubre proyectos personales. El pago por uso escala sin necesidad de tarjeta.
eth_gasPrice returns the Avalanche C-Chain node's suggested gas price in wei — the per-unit price, denominated in AVAX, that a legacy (type-0) transaction should pay to be picked up promptly. On the C-Chain, fees are commonly quoted in nAVAX (the chain's gwei-equivalent), and this method gives you a single suggested figure rather than the full EIP-1559 breakdown. Call https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114) and the response is hex-encoded wei, for example "0x4a817c800".
gasPrice field when constructing legacy (type-0) AVAX transactions for tooling that does not build EIP-1559 payloads.eth_feeHistory percentiles for a more robust AVAX fee model.Este método no acepta parámetros. Pasa un array vacío [].
| Tipo | Descripción |
|---|---|
| string (hex) | Hex-encoded gas price in wei (e.g. "0x4a817c800" = 20 gwei). |
Try it live in the Avalanche playground.
| Código | Mensaje | Causa |
|---|---|---|
-32603 | Internal error | Node could not estimate current gas price. |
eth_maxPriorityFeePerGas together with eth_feeHistory.