Bloques API
blocksLee registros de bloques confirmados por número o hash, con marcas de tiempo, recuentos de transacciones y métricas de gas.
Puntos de conexión
| Método | Ruta | Descripción | CU / llamada | USD / 1M de llamadas | Llamadas por ciclo gratuito (aprox.) |
|---|---|---|---|---|---|
| GET | /{chain}/blocks/{number} | Obtener un bloque por número | 5 | $0.50 | 6,000,000 |
| GET | /{chain}/blocks/hash/{hash} | Obtener un bloque por hash | 5 | $0.50 | 6,000,000 |
Sujeto también a un límite de 25 llamadas por segundo.
Campos de respuesta
GET/{chain}/blocks/{number}
| Campo | Tipo |
|---|---|
| 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}
| Campo | Tipo |
|---|---|
| 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 en cadenas
Ejemplo rápido
curl -s "https://api.blockvectra.com/v1/data/base_mainnet/blocks/1" -H "x-api-key: {api_key}"Documentación
Prueba este conjunto de datos gratis
Obtén 30,000,000 CU al registrarte, recargados cada 30 días.
Las solicitudes rechazadas no se facturan, y la Data API solo factura respuestas exitosas.