Blocks
List latest blocks
Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
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.
Query Parameters
pageToken?string
A page token, received from a previous list call. Provide this to retrieve the subsequent page.
pageSize?integer
The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
Default
10Range
1 <= value <= 100Response 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?pageSize=10"{
"nextPageToken": "string",
"blocks": [
{
"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?