Avalanche
Avalanche
Avalanche
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
eth_blockNumber returns the height of the most recently accepted block on the Avalanche C-Chain — the EVM contract chain where gas is paid in AVAX. Because the C-Chain runs the Snowman consensus protocol with roughly one-to-two-second finality, the value advances quickly, and an accepted block here is already final rather than merely the longest fork. Send the request to https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114) and you get back the current tip as a hex-encoded integer such as "0x2f1a4c".
eth_getLogs across a historical range.Este método não aceita parâmetros. Passe um array vazio [].
| Tipo | Descrição |
|---|---|
| string (hex) | Hex-encoded integer block number. Parse with parseInt(value, 16) or BigInt(value). |
Try it live in the Avalanche playground.
| Código | Mensagem | Causa |
|---|---|---|
-32603 | Internal error | Node is not reachable or has not yet produced any block. |
"0x2f1a4c", not a number — parse it with parseInt(value, 16) or BigInt(value) before doing any arithmetic.