Transações API
transactionsBusque uma transação por hash com seus logs de eventos de recibo ou liste as transações incluídas em um bloco.
Pontos de extremidade
| Método | Caminho | Descrição | CU / chamada | USD / 1M chamadas | Chamadas por ciclo gratuito (aprox.) |
|---|---|---|---|---|---|
| GET | /{chain}/transactions/{hash} | Obter uma transação por hash | 5 | $0.50 | 6,000,000 |
| GET | /{chain}/blocks/{number}/transactions | Listar transações de um bloco | 10 | $1.00 | 3,000,000 |
Também sujeito a um limite de 25 chamadas por segundo.
Campos de resposta
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 |
Disponível nas cadeias
Exemplo rápido
curl -s "https://api.blockvectra.com/v1/data/base_mainnet/transactions/{hash}" -H "x-api-key: {api_key}"Documentação
Experimente este conjunto de dados gratuitamente
Ganhe 30,000,000 CU no cadastro, renovados a cada 30 dias.
Requisições rejeitadas não são cobradas, e a Data API cobra apenas por respostas bem-sucedidas.