GET
/
blockscout
/
blocks
get blocks
curl --request GET \
  --url https://data-api.b3.fun/blockscout/blocks
{
  "items": [
    {
      "hash": "0xf569ec751152b2f814001fc730f7797aa155e4bc3ba9cb6ba24bc2c8c9468c1a",
      "height": 17615720,
      "timestamp": "2023-07-03T20:09:59.000000Z"
    }
  ],
  "next_page_params": {
    "block_number": 27729304,
    "items_count": 50
  }
}

Query Parameters

type
string
Example:

"block | uncle | reorg"

chainId
enum<integer>

Chain ID to query. If not specified, queries default chain (B3 Mainnet) first, then falls back to all chains if no results found.

Available options:
8333,
1993,
19934,
10211403,
243,
4224
Example:

8333

fresh
boolean

Bypass cache and fetch fresh data. Rate limited to 20 requests per minute per IP address.

Response

200
application/json

block

The response is of type object.