EVM 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.

get/v1/blocks

Request

  • Base URL: https://data-api.avax.network
  • URL: https://data-api.avax.network/v1/blocks
  • Auth: one of:
    • API key in header x-glacier-api-key
    • none

Query parameters

pageTokenstring

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

pageSizeinteger

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

network'mainnet' | 'fuji' | 'testnet'

Either mainnet or testnet/fuji.

Response

Successful response

nextPageTokenstring

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.

Example response

{
  "blocks": [
    {
      "chainId": "43114",
      "blockNumber": "339",
      "blockTimestamp": 1648672486,
      "blockTimestampMilliseconds": 1648672486000,
      "blockMinDelayExcess": 7477290,
      "blockHash": "0x17533aeb5193378b9ff441d61728e7a2ebaf10f61fd5310759451627dfca2e7c"
    }
  ]
}

Changes

No recorded changes to this operation across all 3 revisions of this API.