---
title: "getBlocks"
method: GET
path: "/v1/blocks"
tags: ["Blocks"]
---

# getBlocks

`GET /v1/blocks`

Get a list of all blocks (both canonical and orphaned) on the Mina Blockchain.
Orphaned blocks are blocks that didn’t enter the canonical chain. Transactions that enter orphaned blocks are failed and wait to be executed until they’re added in a canonical block.

## Query parameters

- `page` integer, required
- `size` integer, required
- `orderBy` 'ASC' | 'DESC', required
- `validatorAddress` string
- `sortBy` 'HEIGHT' | 'TIMESTAMP' | 'SLOT' | 'HEIGHT' | 'TIMESTAMP' | 'SLOT', required
- `type` 'CANONICAL' | 'ORPHANED' | 'ALL' | 'ALL' | 'CANONICAL' | 'ORPHANED', required

## Response `200`

OK

- CutPageBlocks
  - `data` Blocks[]
    - `stateHash` string
    - `parentHash` string
    - `ledgerHash` string
    - `blockHeight` integer
    - `slot` integer
    - `epoch` integer
    - `globalSlotSinceGenesis` integer
    - `timestamp` integer
    - `accountAddress` string
    - `accountName` string
    - `accountImg` string
    - `transactionsCount` integer
    - `zkappTransactionsCount` integer
    - `coinbase` number
    - `isCanonical` boolean
    - `snarkersCount` integer
    - `snarkJobsCount` integer
  - `currentPage` integer
  - `size` integer
  - `totalItems` integer
  - `totalPages` integer
  - `totalCount` integer
  - `content` Blocks[]
    - `stateHash` string
    - `parentHash` string
    - `ledgerHash` string
    - `blockHeight` integer
    - `slot` integer
    - `epoch` integer
    - `globalSlotSinceGenesis` integer
    - `timestamp` integer
    - `accountAddress` string
    - `accountName` string
    - `accountImg` string
    - `transactionsCount` integer
    - `zkappTransactionsCount` integer
    - `coinbase` number
    - `isCanonical` boolean
    - `snarkersCount` integer
    - `snarkJobsCount` integer
  - `pageable` PageableObject
    - `pageNumber` integer
    - `pageSize` integer
    - `offset` integer
    - `sort` SortObject
      - `sorted` boolean
      - `empty` boolean
      - `unsorted` boolean
    - `paged` boolean
    - `unpaged` boolean
  - `last` boolean
  - `totalElements` integer
  - `number` integer
  - `sort` SortObject
    - `sorted` boolean
    - `empty` boolean
    - `unsorted` boolean
  - `first` boolean
  - `numberOfElements` integer
  - `empty` boolean

---

[API](https://skmtc.net/blockberry/apis/sui-mainnet-api.md) · [All operations](https://skmtc.net/blockberry/apis/sui-mainnet-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/blockberry/sui-mainnet-api/revisions/3e4cb73940b7/schema)
