GET
/
v1
/
chains
/
allBlocks
curl --request GET \
  --url https://glacier-api.avax.network/v1/chains/allBlocks \
  --header 'x-glacier-api-key: <api-key>'
{
  "nextPageToken": "<string>",
  "blocks": [
    {
      "chainId": "43114",
      "blockNumber": "339",
      "blockTimestamp": 1648672486,
      "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c",
      "txCount": 123,
      "baseFee": "<string>",
      "gasUsed": "<string>",
      "gasLimit": "<string>",
      "gasCost": "<string>",
      "parentHash": "<string>",
      "feesSpent": "<string>",
      "cumulativeTransactions": "<string>"
    }
  ]
}

Authorizations

x-glacier-api-key
string
header
required

Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://avacloud.io/.

Query Parameters

pageToken
string

A page token, received from a previous list call. Provide this to retrieve the subsequent page.

pageSize
integer
default:10

The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.

Required range: 1 <= x <= 100
network
enum<string>

Either mainnet or testnet/fuji.

Available options:
mainnet,
fuji,
testnet,
devnet

Response

200
application/json
Successful response
blocks
object[]
required
nextPageToken
string

A token, which can be sent as pageToken to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.