---
title: "block info"
method: GET
path: "/block"
tags: ["block"]
---

# block info

`GET /block`

Returns filtered blocks

## Query parameters

- `workchain` integer
- `shard` integer
- `seq_no` integer
- `with_transactions` boolean
- `offset` integer, required
- `limit` integer, required

## Response `200`

OK

- CoreBlock[]
  - `file_hash` integer[] — TODO: []byte here, go-bun bug on has-many
  - `master` CoreBlockID
    - `seq_no` integer
    - `shard` integer
    - `workchain` integer
  - `root_hash` integer[]
  - `seq_no` integer
  - `shard` integer
  - `shards` CoreBlock[]
  - `transactions` CoreTransaction[]
    - `account` CoreAccountState
      - `address` string
      - `balance` integer
      - `code` integer[]
      - `code_hash` integer[]
      - `data` integer[]
      - `data_hash` integer[]
      - `depth` integer — TODO: do we need it?
      - `is_active` boolean
      - `last_tx_hash` integer[]
      - `last_tx_lt` integer
      - `latest` boolean
      - `state_data` CoreAccountData
        - `address` string
        - `admin_addr` string
        - `balance` string — TODO: pointer here, bun bug
        - `collection_address` string
        - `content_description` string
        - `content_image` string
        - `content_image_data` integer[]
        - `content_name` string
        - `content_uri` string
        - `editor_address` string
        - `initialized` boolean
        - `item_index` integer
        - `last_tx_hash` integer[]
        - `last_tx_lt` integer
        - `master_address` string — OwnerAddress *address.Address
        - `mintable` boolean
        - `next_item_index` integer
        - `owner_address` string — universal column for many contracts
        - `royalty_address` string
        - `royalty_base` integer
        - `royalty_factor` integer
        - `total_supply` string — TODO: pointer here, bun bug
        - `types` string[] — TODO: ContractType here, ch bug
      - `state_hash` integer[] — only if account is frozen
      - `status` string — TODO: enum
      - `tick` boolean
      - `tock` boolean
      - `types` string[] — TODO: list all get method hashes
    - `address` string
    - `block_seq_no` integer
    - `block_shard` integer
    - `block_workchain` integer
    - `created_at` integer
    - `created_lt` integer
    - `description` integer[] — TODO: parse it (exit code, etc)
    - `end_status` string
    - `hash` integer[]
    - `in_msg` CoreMessage
      - `amount` integer — TODO: uint256
      - `body` integer[]
      - `body_hash` integer[]
      - `bounce` boolean
      - `bounced` boolean
      - `created_at` integer
      - `created_lt` integer
      - `dst_address` string
      - `fwd_fee` integer — TODO: uint256
      - `hash` integer[]
      - `ihr_disabled` boolean
      - `ihr_fee` integer — TODO: uint256
      - `msg_type` string — TODO: ch enum
      - `operation_id` integer
      - `payload` CoreMessagePayload
        - `body_hash` integer[]
        - `created_at` integer
        - `created_lt` integer
        - `data_json` string
        - `dst_address` string
        - `dst_contract` string
        - `hash` integer[]
        - `msg_type` string
        - `operation_id` integer
        - `operation_name` string
        - `src_address` string
        - `src_contract` string
      - `source` CoreTransaction — recursive
      - `source_tx_hash` integer[] — SourceTx initiates outgoing message or contract can accept external incoming message in SourceTx
      - `source_tx_lt` integer
      - `src_address` string
      - `state_init_code` integer[]
      - `state_init_data` integer[]
      - `transfer_comment` string
    - `in_msg_hash` integer[]
    - `orig_status` string
    - `out_msg` CoreMessage[]
      - `amount` integer — TODO: uint256
      - `body` integer[]
      - `body_hash` integer[]
      - `bounce` boolean
      - `bounced` boolean
      - `created_at` integer
      - `created_lt` integer
      - `dst_address` string
      - `fwd_fee` integer — TODO: uint256
      - `hash` integer[]
      - `ihr_disabled` boolean
      - `ihr_fee` integer — TODO: uint256
      - `msg_type` string — TODO: ch enum
      - `operation_id` integer
      - `payload` CoreMessagePayload
        - `body_hash` integer[]
        - `created_at` integer
        - `created_lt` integer
        - `data_json` string
        - `dst_address` string
        - `dst_contract` string
        - `hash` integer[]
        - `msg_type` string
        - `operation_id` integer
        - `operation_name` string
        - `src_address` string
        - `src_contract` string
      - `source` CoreTransaction — recursive
      - `source_tx_hash` integer[] — SourceTx initiates outgoing message or contract can accept external incoming message in SourceTx
      - `source_tx_lt` integer
      - `src_address` string
      - `state_init_code` integer[]
      - `state_init_data` integer[]
      - `transfer_comment` string
    - `prev_tx_hash` integer[]
    - `prev_tx_lt` integer
    - `state_update` integer[]
    - `total_fees` integer — `ch:"type:UInt256"`
  - `workchain` integer

## Changes

- **2023-02-22** `e00c25bb9798` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/tonindexer/apis/anton/changes/block/get.md)

---

[API](https://skmtc.dev/tonindexer/apis/anton.md) · [All operations](https://skmtc.dev/tonindexer/apis/anton/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tonindexer/anton/revisions/e00c25bb9798/schema)
