---
title: "GET /v1/indexer/tx/{txid}"
method: GET
path: "/v1/indexer/tx/{txid}"
tags: ["Transactions"]
---

# GET /v1/indexer/tx/{txid}

`GET /v1/indexer/tx/{txid}`

## Request

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

Get the summary info of a tx.

## Path parameters

- `txid` string, required

## Response `200`

Successful operation

- object
  - `code` 0 | -1
  - `msg` string
  - `data` object
    - `detail` TxHistoryItem
      - `txid` string
      - `nIn` integer
      - `nOut` integer
      - `inSatoshi` integer
      - `outSatoshi` integer
      - `locktime` integer
      - `size` integer
      - `witOffset` integer
      - `height` integer
      - `idx` integer
      - `blkid` string
      - `confirmations` integer
      - `timestamp` integer
    - `start` integer
    - `total` integer

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