Blocks
Get block
Gets the details of an individual block on the EVM-compatible chain.
x-glacier-api-key<token>
Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://avacloud.io/.
In: header
Path Parameters
chainIdstring
A supported evm chain id or blockchain id. Use the /chains endpoint to get a list of supported chain ids.
blockIdstring
A block identifier which is either a block number or the block hash.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://glacier-api.avax.network/v1/chains/43114/blocks/0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c"{
"chainId": "43114",
"blockNumber": "339",
"blockTimestamp": 1648672486,
"blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c",
"txCount": 0,
"baseFee": "string",
"gasUsed": "string",
"gasLimit": "string",
"gasCost": "string",
"parentHash": "string",
"feesSpent": "string",
"cumulativeTransactions": "string"
}{
"message": "string",
"statusCode": 400,
"error": "Bad Request"
}{
"message": "string",
"statusCode": 401,
"error": "Unauthorized"
}{
"message": "string",
"statusCode": 403,
"error": "Forbidden"
}{
"message": "string",
"statusCode": 404,
"error": "Not Found"
}{
"message": "string",
"statusCode": 429,
"error": "Too Many Requests"
}{
"message": "string",
"statusCode": 500,
"error": "Internal Server Error"
}{
"message": "string",
"statusCode": 502,
"error": "Bad Gateway"
}{
"message": "string",
"statusCode": 503,
"error": "Service Unavailable"
}Is this guide helpful?