Transacciones API
transactionsBusca una transacción por hash con sus registros de eventos de recibo o lista las transacciones incluidas en un bloque.
Puntos de conexión
| Método | Ruta | Descripción | CU / llamada | USD / 1M de llamadas | Llamadas por ciclo gratuito (aprox.) |
|---|---|---|---|---|---|
| GET | /{chain}/transactions/{hash} | Obtener una transacción por hash | 5 | $0.50 | 6,000,000 |
| GET | /{chain}/blocks/{number}/transactions | Listar las transacciones de un bloque | 10 | $1.00 | 3,000,000 |
Sujeto también a un límite de 25 llamadas por segundo.
Campos de respuesta
GET/{chain}/transactions/{hash}
| Campo | Tipo |
|---|---|
| block_number | integer |
| tx_index | integer |
| hash | string |
| block_timestamp | string |
| type | integer |
| from | string |
| to | string | null |
| value | string |
| nonce | integer |
| gas | integer |
| gas_price | string | null |
| max_fee_per_gas | string | null |
| max_priority_fee_per_gas | string | null |
| input | string |
| status | integer |
| gas_used | integer |
| cumulative_gas_used | integer |
| effective_gas_price | string | null |
| contract_address | string | null |
| log_count | integer |
| gas_used_for_l1 | integer | null |
| l1_block_number | integer | null |
| extra | object |
| logs | array |
GET/{chain}/blocks/{number}/transactions
| Campo | Tipo |
|---|---|
| block_number | integer |
| tx_index | integer |
| hash | string |
| block_timestamp | string |
| type | integer |
| from | string |
| to | string | null |
| value | string |
| nonce | integer |
| gas | integer |
| gas_price | string | null |
| max_fee_per_gas | string | null |
| max_priority_fee_per_gas | string | null |
| input | string |
| status | integer |
| gas_used | integer |
| cumulative_gas_used | integer |
| effective_gas_price | string | null |
| contract_address | string | null |
| log_count | integer |
| gas_used_for_l1 | integer | null |
| l1_block_number | integer | null |
| extra | object |
Disponible en cadenas
Ejemplo rápido
curl -s "https://api.blockvectra.com/v1/data/base_mainnet/transactions/{hash}" -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.