---
title: "POST /transaction/output"
method: POST
path: "/transaction/output"
---

# POST /transaction/output

`POST /transaction/output`

Get the outputs for given `<tx hash, output index>` pairs.

This endpoint will return both used AND unused outputs

Note: this endpoint only returns txs that are in a block. Use another tool to see mempool for txs not in a block

## Request body

- TransactionOutputRequest
  - `utxoPointers` UtxoPointer[], required
    - `index` number, double, required
    - `txHash` string, required

## Response `200`

- TransactionOutputResponse
  - `utxos` UtxoAndBlockInfo[], required
    - `utxo` object, required
      - `index` number, double, required
      - `txHash` string, required
      - `payload` string, required
    - `block` BlockInfo, required
      - `slot` number, double, required
      - `epoch` number, double, required
      - `height` number, double, required
      - `hash` string, required
      - `era` number, double, required
      - `isValid` boolean, required
      - `indexInBlock` number, double, required — index of tx in block

## Other responses

- `400`
- `422`

## Changes

- **2023-12-01** `bfb1cc42bf41` — 1 info
  - the `utxos/items/block/allOf[#/components/schemas/BlockSubset]/hash` response's property pattern `[0-9a-fA-F]{64}` was added for the status `200`
- **2022-05-21** `935487c58461` — 9 breaking, 5 info
  - added the pattern `[0-9a-fA-F]{64}` to the request property `utxoPointers/items/txHash`
  - the `utxos/items/block` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - removed the required property `utxos/items/block/epoch` from the response with the `200` status
  - removed the required property `utxos/items/block/era` from the response with the `200` status
  - …10 more
- **2022-05-15** `204a7f136b24` — 1 breaking, 3 info
  - the `utxos/items/` response's property type/format changed from ``/`` to `object`/`` for status `200`
  - removed `#/components/schemas/UtxoPointer, subschema #2` from the `utxos/items/` response property `allOf` list for the response status `200`
  - added the required property `utxos/items/block` to the response with the `200` status
  - added the required property `utxos/items/utxo` to the response with the `200` status
- …earlier changes not shown

[Full history](https://skmtc.dev/dcspark/apis/carp/changes/transaction/output/post.md)

---

[API](https://skmtc.dev/dcspark/apis/carp.md) · [All operations](https://skmtc.dev/dcspark/apis/carp/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dcspark/carp/revisions/ab189523ed9a/schema)
