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

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

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

## Request

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

Get the inputs of a tx.

## Path parameters

- `txid` string, required

## Query parameters

- `cursor` integer, required
- `size` integer, required

## Response `200`

Successful operation

- object
  - `code` 0 | -1
  - `msg` string
  - `data` object
    - `address` string
    - `codeType` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9: 0~3: Reserved , 4: CodeType_P2PK, 5: CodeType_P2PKH, 6: CodeType_P2SH, 7: CodeType_P2WPKH, 8: CodeType_P2WSH, 9: CodeType_P2TR
    - `inscriptions` InscriptionItem[]
      - `inscriptionId` string
      - `inscriptionNumber` integer
      - `isBRC20` boolean
      - `moved` boolean
      - `offset` integer
    - `satoshi` integer
    - `scriptPk` string
    - `scriptSig` string
    - `scriptType` string
    - `scriptWits` string
    - `sequence` integer
    - `height` integer
    - `txid` string
    - `idx` integer
    - `heightTxo` integer
    - `utxid` string
    - `vout` 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)
