---
title: "Get a Transaction Output by Hash and Index"
method: GET
path: "/{protocol}/{network}/tx/{hash}/{index}"
tags: ["Transactions"]
---

# Get a Transaction Output by Hash and Index

`GET /{protocol}/{network}/tx/{hash}/{index}`

Get a transaction output by a user-defined transaction hash and the transaction output index.

## Path parameters

- `protocol` string, required
- `network` string, required
- `hash` string, required
- `index` integer, required

## Response `200`

Transaction output.

- TxOutput
  - `status` 'mined' | 'unknown' — The result status of the transaction output.
  - `is_spent` boolean — If the transaction output was spent or not, if the value is true the `spent` transaction object will be presented.
  - `spent` TxMinify, nullable — Transaction
    - `index` integer — The output index within a given transaction.
    - `tx_id` string — The transaction identifier.
    - `date` integer — The Unix timestamp.
    - `block_id` string, nullable — The ID of block.
    - `block_number` integer, nullable — The height of block.
    - `confirmations` integer — Total transaction confirmations.
  - `value` integer, nullable — The amount of transaction output.
  - `mined` TxMinify, nullable — Transaction
    - `index` integer — The output index within a given transaction.
    - `tx_id` string — The transaction identifier.
    - `date` integer — The Unix timestamp.
    - `block_id` string, nullable — The ID of block.
    - `block_number` integer, nullable — The height of block.
    - `confirmations` integer — Total transaction confirmations.

## Other responses

- `401` — Invalid or expired token
- `404` — Resource not found
- `429` — Rate limit exceeded
- `500` — An internal server error happened
- `503` — The resource you are trying to access is currently unavailable

---

[API](https://skmtc.dev/blockdaemon/apis/staking-api.md) · [All operations](https://skmtc.dev/blockdaemon/apis/staking-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/blockdaemon/staking-api/revisions/f94e296a08a3/schema)
