Blocs API
blocksLisez 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éthode | Chemin | Description | CU / appel | USD / 1M d'appels | Appels par cycle gratuit (approx.) |
|---|---|---|---|---|---|
| GET | /{chain}/blocks/{number} | Obtenir un bloc par son numéro | 5 | $0.50 | 6,000,000 |
| GET | /{chain}/blocks/hash/{hash} | Obtenir un bloc par son hash | 5 | $0.50 | 6,000,000 |
Également soumis à une limite de 25 appels par seconde.
Champs de la réponse
GET/{chain}/blocks/{number}
| Champ | Type |
|---|---|
| number | integer |
| hash | string |
| parent_hash | string |
| timestamp | string |
| miner | string |
| gas_limit | integer |
| gas_used | integer |
| base_fee_per_gas | string | null |
| state_root | string |
| transactions_root | string |
| receipts_root | string |
| tx_count | integer |
| size | integer |
| l1_block_number | integer | null |
| extra | object |
GET/{chain}/blocks/hash/{hash}
| Champ | Type |
|---|---|
| number | integer |
| hash | string |
| parent_hash | string |
| timestamp | string |
| miner | string |
| gas_limit | integer |
| gas_used | integer |
| base_fee_per_gas | string | null |
| state_root | string |
| transactions_root | string |
| receipts_root | string |
| tx_count | integer |
| size | integer |
| l1_block_number | integer | null |
| extra | object |
Disponible sur les chaînes
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.