Skip to main content

v1/{chainName}/block_v2/{blockHeight}/ REST API Endpoint

Commonly used to fetch and render a single block for a block explorer.

Updated on
Jan 09, 2025

v1/{chainName}/block_v2/{blockHeight}/ REST API Endpoint

Path Parameters

chainName
string
REQUIRED
The name of the blockchain (e.g., eth-mainnet)
blockHeight
string
REQUIRED
The height of the specific block to fetch details for

Returns

data
object
The main data of the response
updated_at
string
The timestamp when the data was last updated
chain_id
integer
The ID of the blockchain chain
chain_name
string
The name of the blockchain chain
items
array
The array of block items
block_hash
string
The hash of the block
signed_at
string
The timestamp when the block was signed
height
integer
The height of the block
block_parent_hash
string
The hash of the parent block
extra_data
string
Additional data included in the block
miner_address
string
The address of the miner that mined the block
mining_cost
integer
The cost of mining the block
gas_used
integer
The total gas used in the block
gas_limit
integer
The gas limit of the block
transactions_link
string
The link to view the transactions in the block
error
boolean
Indicates whether an error occurred
error_message
string
The error message if an error occurred
error_code
string
The error code if an error occurred
Request
1
curl --location 'https://api.covalenthq.com/v1/eth-mainnet/block_v2/18901757/' \
2
--header 'Content-Type: application/json' \
3
--header 'Authorization: Bearer YOUR_API_KEY'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free