---
title: "Get the best block height of BRC20 data."
method: GET
path: "/v1/indexer/brc20/bestheight"
tags: ["BRC-20"]
---

# Get the best block height of BRC20 data.

`GET /v1/indexer/brc20/bestheight`

## Request

- Base URL: `https://open-api.unisat.io`
- URL: `https://open-api.unisat.io/v1/indexer/brc20/bestheight`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/unisat/apis/unisat-wallet-openapi/docs/v1/indexer/brc20/bestheight/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the best block height of BRC20 data. This value will be consistent with the latest block height a short time after the block has been confirmed.

## Response `200`

Successful operation

- object
  - `code` 0 | -1
  - `msg` string
  - `data` object
    - `height` integer: best block height of brc20
    - `total` integer: total number of brc20 tickers

## Other responses

- `401`: Invalid API Key

---

[API](https://skmtc.dev/unisat/apis/unisat-wallet-openapi.md) - [All operations](https://skmtc.dev/unisat/apis/unisat-wallet-openapi/llms.txt) - [OpenAPI document](https://skmtc.dev/unisat/apis/unisat-wallet-openapi/revisions/68de350419c7?raw)
