Avalanche
Avalanche
Avalanche
Das Free-Tier deckt persönliche Projekte ab. Pay-as-you-go skaliert ohne Karte.
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.Diese Methode erwartet keine Parameter. Übergib ein leeres Array [].
| Typ | Beschreibung |
|---|---|
| string (hex) | Hex-encoded integer block number. Parse with parseInt(value, 16) or BigInt(value). |
Try it live in the Avalanche playground.
| Code | Meldung | Ursache |
|---|---|---|
-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.