Skip to main content
GET
/
blocks
/
{block_number_or_hash}
Get block details
curl --request GET \
  --url 'https://api.blockscout.com/{chain_id}/api/v2/blocks/{block_number_or_hash}?apikey='
{}

Authorizations

apikey
string
query
required

API key passed as query parameter (format proapi_xxxxxxxx)

Path Parameters

block_number_or_hash
required

Block number

Query Parameters

apikey
string

API key for rate limiting or for sensitive endpoints

Example:

"proapi_xxxxxxxx"

key
string

Secret key for getting access to restricted resources

Response

Block details retrieved successfully

Block details