---
title: "GET /v1/indexer/blockchain/info"
method: GET
path: "/v1/indexer/blockchain/info"
tags: ["Blocks"]
---

# GET /v1/indexer/blockchain/info

`GET /v1/indexer/blockchain/info`

## Request

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

Get blockchain info.

## Response `200`

Successful operation

- object
  - `code` 0 | -1
  - `msg` string
  - `data` object
    - `chain` string
    - `blocks` integer
    - `headers` integer
    - `bestBlockHash` string
    - `prevBlockHash` string
    - `medianTime` integer
    - `chainwork` string

## 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)
