---
title: "Show a decoded transaction"
method: GET
path: "/api/v2/bitcoin/transactions/{txid}/decoded"
tags: ["Bitcoin Transactions"]
---

# Show a decoded transaction

`GET /api/v2/bitcoin/transactions/{txid}/decoded`

Show the details of a decoded transaction

## Headers

- `X-Network` 'testnet' | 'mainnet'
- `Authorization` string, required
- `Content-Type` 'application/json' | 'application/x-www-form-urlencoded' | 'multipart/form-data'

## Response `200`

decoded

- object
  - `status` integer
  - `ok` boolean
  - `message` string
  - `data` object
    - `txid` object
      - `txid` string
      - `hash` string
      - `version` integer
      - `size` integer
      - `vsize` integer
      - `weight` integer
      - `locktime` integer
      - `vin` object[]
        - `txid` string
        - `vout` integer
        - `scriptSig` object
          - `asm` string
          - `hex` string
        - `txinwitness` string[]
        - `sequence` integer
      - `vout` object[]
        - `value` number
        - `n` integer
        - `scriptPubKey` object
          - `asm` string
          - `desc` string
          - `hex` string
          - `address` string
          - `type` string
      - `hex` string
      - `blockhash` string
      - `confirmations` integer
      - `time` integer
      - `blocktime` integer

---

[API](https://skmtc.net/chaingateway/apis/chaingateway-api-documentation.md) · [All operations](https://skmtc.net/chaingateway/apis/chaingateway-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chaingateway/chaingateway-api-documentation/revisions/ddb709b4ade7/schema)
