Avalanche
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Avalanche
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Blocks are the unit in which the Avalanche C-Chain records everything — every transfer, contract call, and state change is bundled into a block and finalized under Snowman consensus in roughly one to two seconds. Almost any C-Chain integration ultimately reads blocks: to confirm a transaction landed, to react to on-chain events, to index history, or to price gas. After reading this guide you will be able to retrieve C-Chain blocks by number and by tag from https://avalanche.therpc.io/YOUR_API_KEY, monitor new blocks as they arrive, count confirmations, and reason correctly about finality on chainId 43114 so your application acts on settled data rather than a transient tip.
parentHash linking it to the previous block, a timestamp, the baseFeePerGas, the gasLimit and gasUsed, and the list of transactions. The uncles array is always empty on Avalanche since the chain produces no ommers.eth_getBlockByNumber (a decimal-as-hex height or a tag like latest) or eth_getBlockByHash. Pass the full-transactions flag to get whole transaction objects instead of just hashes, and use eth_blockNumber to read the current tip.newBlockHeaders for push updates, or poll eth_blockNumber where subscriptions are not available.parentHash matches the prior block's hash. Snowman finality makes C-Chain reorgs rare and shallow, but data at the tip can still shift before it finalizes.latest reads so you do not serve a block behind the tip.baseFeePerGas and gasUsed/gasLimit across recent blocks to price transactions accurately in AVAX and to spot congestion — fee pressure and block fullness directly affect whether your transactions land promptly.