Passer au contenu

Blocs API

blocks

Lisez les enregistrements de blocs confirmés par numéro ou hash, avec horodatages, nombres de transactions et métriques de gas.

Points de terminaison

MéthodeCheminDescriptionCU / appelUSD / 1M d'appelsAppels par cycle gratuit (approx.)
GET/{chain}/blocks/{number}Obtenir un bloc par son numéro5$0.506,000,000
GET/{chain}/blocks/hash/{hash}Obtenir un bloc par son hash5$0.506,000,000

Également soumis à une limite de 25 appels par seconde.

Champs de la réponse

GET/{chain}/blocks/{number}

ChampType
numberinteger
hashstring
parent_hashstring
timestampstring
minerstring
gas_limitinteger
gas_usedinteger
base_fee_per_gasstring | null
state_rootstring
transactions_rootstring
receipts_rootstring
tx_countinteger
sizeinteger
l1_block_numberinteger | null
extraobject

GET/{chain}/blocks/hash/{hash}

ChampType
numberinteger
hashstring
parent_hashstring
timestampstring
minerstring
gas_limitinteger
gas_usedinteger
base_fee_per_gasstring | null
state_rootstring
transactions_rootstring
receipts_rootstring
tx_countinteger
sizeinteger
l1_block_numberinteger | null
extraobject

Disponible sur les chaînes

Voir l'état en direct →

Exemple rapide

curl -s "https://api.blockvectra.com/v1/data/base_mainnet/blocks/1" -H "x-api-key: {api_key}"

Documentation

Essayez ce jeu de données gratuitement

Obtenez 30,000,000 CU à l'inscription, rechargés tous les 30 jours.

Les requêtes rejetées ne sont pas facturées, et la Data API ne facture que les réponses réussies.