Blocks
List latest blocks across all supported EVM chains
Lists the most recent blocks from all supported EVM-compatible chains. The results can be filtered by network.
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
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 <= 100network?string
Either mainnet or testnet/fuji.
Value in
"mainnet" | "fuji" | "testnet"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/blocks?pageSize=10&network=mainnet"{
"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?