Blocks

Get blocks

get

Returns blocks by specified filters.

Authorizations
Query parameters
workchainintegerOptional

Block workchain.

shardstringOptional

Block shard id. Must be sent with workchain. Example: 8000000000000000.

seqnointegerOptional

Block block seqno. Must be sent with workchain and shard.

mc_seqnointegerOptional

Masterchain block seqno

start_utimeintegerOptional

Query blocks with generation UTC timestamp after given timestamp.

end_utimeintegerOptional

Query blocks with generation UTC timestamp before given timestamp.

start_ltintegerOptional

Query blocks with lt >= start_lt.

end_ltintegerOptional

Query blocks with lt <= end_lt.

limitinteger · min: 1 · max: 1000Optional

Limit number of queried rows. Use with offset to batch read.

offsetintegerOptional

Skip first N rows. Use with limit to batch read.

sortstring · enumOptional

Sort results by UTC timestamp.

Possible values:
Responses
200
OK
application/json
get
GET /api/v3/blocks HTTP/1.1
Host: ton-index.nownodes.io
X-Api-Key: YOUR_API_KEY
Accept: */*
{
  "blocks": [
    {
      "after_merge": true,
      "after_split": true,
      "before_split": true,
      "created_by": "text",
      "end_lt": "0",
      "file_hash": "text",
      "flags": 1,
      "gen_catchain_seqno": 1,
      "gen_utime": "0",
      "global_id": 1,
      "key_block": true,
      "master_ref_seqno": 1,
      "masterchain_block_ref": {
        "seqno": 1,
        "shard": "0",
        "workchain": 1
      },
      "min_ref_mc_seqno": 1,
      "prev_blocks": [
        {
          "seqno": 1,
          "shard": "0",
          "workchain": 1
        }
      ],
      "prev_key_block_seqno": 1,
      "rand_seed": "text",
      "root_hash": "text",
      "seqno": 1,
      "shard": "0",
      "start_lt": "0",
      "tx_count": 1,
      "validator_list_hash_short": 1,
      "version": 1,
      "vert_seqno": 1,
      "vert_seqno_incr": true,
      "want_merge": true,
      "want_split": true,
      "workchain": 1
    }
  ]
}