---
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`

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.net/unisat/apis/unisat-wallet-openapi.md) · [All operations](https://skmtc.net/unisat/apis/unisat-wallet-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/unisat/unisat-wallet-openapi/revisions/68de350419c7/schema)
