Avalanche
Avalanche
Pronto para usar isso em produção?
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
Avalanche
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
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 não aceita parâmetros. Passe um array vazio [].
| Tipo | Descrição |
|---|---|
| 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 | Mensagem | 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.