블록 API
blocks블록 번호 또는 해시로 타임스탬프, 트랜잭션 수, 가스 지표가 포함된 확정 블록 기록을 조회합니다.
엔드포인트
| 메서드 | 경로 | 설명 | CU / 호출 | USD / 1M 호출 | 무료 주기당 호출 수(약) |
|---|---|---|---|---|---|
| GET | /{chain}/blocks/{number} | 블록 번호로 블록 조회 | 5 | $0.50 | 6,000,000 |
| GET | /{chain}/blocks/hash/{hash} | 해시로 블록 조회 | 5 | $0.50 | 6,000,000 |
초당 25회 호출 제한도 적용됩니다.
응답 필드
GET/{chain}/blocks/{number}
| 필드 | 타입 |
|---|---|
| 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}
| 필드 | 타입 |
|---|---|
| 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 |
지원 체인
빠른 예제
curl -s "https://api.blockvectra.com/v1/data/base_mainnet/blocks/1" -H "x-api-key: {api_key}"문서
이 데이터셋 무료로 체험하기
가입 시 30,000,000 CU를 제공하며, 30일마다 충전됩니다.
거부된 요청은 과금되지 않으며, Data API는 성공한 응답에 대해서만 과금합니다.