# Get Transaction Details By Transaction Hash UTXOs

Through this endpoint customers can obtain details about a transaction by the transaction's unique identifier. In UTXO-based protocols like BTC there are attributes such as `transactionId` and transaction `hash`. They still could be different. In protocols like Ethereum there is only one unique value and it's `hash`.

- **Endpoint:** `GET https://rest.cryptoapis.io/transactions/utxo/{blockchain}/{network}/{transactionHash}`
- **Authentication:** `x-api-key` header
- **Credits cost:** 20 credits for 1 result by default; per blockchain: Bitcoin: 20, Bitcoin Cash: 24, Dash: 22, Dogecoin: 22, Litecoin: 22, Zcash: 26
- **Documentation page:** https://developers.cryptoapis.io/v-2.2024-12-12-175/RESTapis/transactions-data-utxos/get-transaction-details-by-transaction-hash-utxos/get

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `blockchain` | string | yes | Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc. Allowed values: `bitcoin`, `bitcoin-cash`, `litecoin`, `dogecoin`, `dash`, `zcash`. |
| `network` | string | yes | Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - "mainnet" is the live network with actual data while networks like "testnet", "sepolia" are test networks. Allowed values: `mainnet`, `testnet`. |
| `transactionHash` | string | yes | String identifier of the transaction |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `context` | string | no | In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. `context` is specified by the user. |

## Responses

| Status | Description |
| --- | --- |
| 200 | The request has been successful. |
| 400 | 400 |
| 401 | 401 |
| 402 | 402 |
| 403 | 403 |
| 409 | The data provided seems to be invalid. |
| 415 | The selected Media Type is unavailable. The Content-Type header should be 'application/json'. |
| 422 | Your request body for POST requests must have a structure of { data: { item: [...properties] } } |
| 429 | The request limit has been reached. There can be maximum {requests} requests per {seconds} second(s) made. Please contact our team via email if you need more or upgrade your plan. |
| 500 | An unexpected server error has occurred, we are working to fix this. Please try again later and in case it occurs again please report it to our team via email. |

### Example 200 response

```json
{
  "apiVersion": "2024-12-12",
  "requestId": "601c1710034ed6d407996b30",
  "context": "yourExampleString",
  "data": {
    "item": {
      "fee": {
        "amount": "0.00016932",
        "unit": "ZEC"
      },
      "hash": "295e563cbc9d8965695a16d3b1a62a56224c61c01ef0886e25f58a91704f81b5",
      "id": "4888ee9815af71920cf131dd6e9be13e178bac03f091a5e28b984df8cee9ab21",
      "isConfirmed": true,
      "isReplaceable": true,
      "locktime": 1234567890,
      "positionInBlock": 123,
      "size": 123,
      "timestamp": 1582202940,
      "version": 1,
      "minedInBlock": {
        "hash": "00000000003f595096f536e70e7dcbc901e64e6d9fc85603194f15035e7a36b9",
        "height": 159123
      },
      "inputs": [
        {
          "addresses": [
            "t2UNzUUx8mWBCRYPRezvA363EYXyEpHokyi"
          ],
          "coinbase": "coinbase",
          "outputIndex": 1,
          "script": {
            "type": "pubkeyhash"
          },
          "transactionId": "32d214cc3c96968ca83b30aa61f0e2fdfc9052b37926f29bb6ec0ae7a4feed9d",
          "value": {
            "amount": "0.000144",
            "unit": "ZEC"
          },
          "witnesses": [
            "3045022100c11ea5740bcd69f0f68a4914279838014d28923134d18e05c5a5486dfd06cc8c02200dadccec3f07bed0d1040f9e5a155efa5fdd40fc91f92342578d26848da4c6b901"
          ]
        }
      ],
      "outputs": [
        {
          "addresses": [
            "t1fh5m9GirsQnQqpj7PAJKDpKq6iyWtsj4r"
          ],
          "isSpent": true,
          "script": {
            "asm": "0 01860a751a68b01422803f102fb34d9eb3a18f6b",
            "hex": "001401860a751a68b01422803f102fb34d9eb3a18f6b",
            "type": "pubkeyhash"
          },
          "value": {
            "amount": "0.000144",
            "unit": "ZEC"
          }
        }
      ],
      "recipients": [
        {
          "address": "t1ZR1TsMeiiAbBKiRH9kFNnVPZoSya3et5s",
          "value": {
            "amount": "0.000144",
            "unit": "ZEC"
          },
          "addresses": "t1ZR1TsMeiiAbBKiRH9kFNnVPZoSya3et5s"
        }
      ],
      "senders": [
        {
          "address": "t1QBnApxL66n3wd2CEF7SRsU9Fqd2C2GD4k",
          "value": {
            "amount": "0.00873472",
            "unit": "ZEC"
          }
        }
      ],
      "blockchainSpecific": {
        "expiryHeight": 123,
        "overwintered": true,
        "valueBalance": {
          "amount": "0.123",
          "unit": "ZEC"
        },
        "versionGroupId": "0b892f2085"
      }
    }
  }
}
```

### 200 response fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `apiVersion` | string | yes | Specifies the version of the API that incorporates this endpoint. |
| `requestId` | string | yes | Defines the ID of the request. The `requestId` is generated by Crypto APIs and it's unique for every request. |
| `context` | string | no | In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. `context` is specified by the user. |
| `data` | object | yes |  |
| `data.item` | object | yes |  |
| `data.item.fee` | object | yes |  |
| `data.item.fee.amount` | string | yes | String representation of the fee value |
| `data.item.fee.unit` | string | yes | String representation of the fee unit |
| `data.item.hash` | string | yes | String representation of the weight |
| `data.item.id` | string | yes | String representation of the transaction identifier (txid) |
| `data.item.isConfirmed` | boolean | yes | Boolean representation of if the transaction is mined |
| `data.item.isReplaceable` | boolean | yes | Boolean representation of whether the transaction RBF (Replace-by-Fee) is enabled |
| `data.item.locktime` | integer | yes | Numeric representation of the transaction locktime |
| `data.item.positionInBlock` | integer | yes | Numeric representation of the transaction index |
| `data.item.size` | integer | yes | Numeric representation of the transaction size |
| `data.item.timestamp` | integer | yes | Numeric representation of the timestamp in seconds since epoch |
| `data.item.version` | integer | yes | Numeric representation of the transaction version |
| `data.item.minedInBlock` | object | yes |  |
| `data.item.minedInBlock.hash` | string | yes | String representation of the block hash |
| `data.item.minedInBlock.height` | integer | yes | Numeric representation of the block height |
| `data.item.inputs` | array of object | yes | Object Array representation of transaction inputs |
| `data.item.inputs[].addresses` | array of string | no |  |
| `data.item.inputs[].coinbase` | string | no | String representation of the coinbase hex |
| `data.item.inputs[].outputIndex` | integer | yes | Numeric representation of the vout |
| `data.item.inputs[].script` | object | yes |  |
| `data.item.inputs[].script.type` | string | yes | String representation of the votype |
| `data.item.inputs[].transactionId` | string | yes | String representation of the txid |
| `data.item.inputs[].value` | object | no |  |
| `data.item.inputs[].value.amount` | string | no | String representation of the amount |
| `data.item.inputs[].value.unit` | string | no |  |
| `data.item.inputs[].witnesses` | array of string | no |  |
| `data.item.outputs` | array of object | yes | Object Array representation of transaction outputs |
| `data.item.outputs[].addresses` | array of string | no |  |
| `data.item.outputs[].isSpent` | boolean | yes | Boolean representation of is the transaction output spent |
| `data.item.outputs[].script` | object | yes | Object representation of the script |
| `data.item.outputs[].script.asm` | string | no | String representation of the asm |
| `data.item.outputs[].script.hex` | string | no | String representation of the hex |
| `data.item.outputs[].script.type` | string | yes | String representation of the type |
| `data.item.outputs[].value` | object | no |  |
| `data.item.outputs[].value.amount` | string | no | String representation of the amount |
| `data.item.outputs[].value.unit` | string | no |  |
| `data.item.recipients` | array of object | yes | Object Array representation of transaction receivers |
| `data.item.recipients[].address` | string | yes | String representation of the receiver address |
| `data.item.recipients[].value` | object | yes |  |
| `data.item.recipients[].value.amount` | string | yes | String representation of the amount |
| `data.item.recipients[].value.unit` | string | no |  |
| `data.item.recipients[].addresses` | string | yes | String representation of the receiver address |
| `data.item.senders` | array of object | yes | Object Array representation of transaction senders |
| `data.item.senders[].address` | string | yes | String array representation of the sender address |
| `data.item.senders[].value` | object | yes |  |
| `data.item.senders[].value.amount` | string | yes | String representation of the amount |
| `data.item.senders[].value.unit` | string | no |  |
| `data.item.blockchainSpecific` | object | no |  |
| `data.item.blockchainSpecific.expiryHeight` | integer | yes | Numeric representation of the transaction block height expiration |
| `data.item.blockchainSpecific.overwintered` | boolean | yes |  |
| `data.item.blockchainSpecific.valueBalance` | object | yes |  |
| `data.item.blockchainSpecific.valueBalance.amount` | string | yes | String representation of the transaction value balance |
| `data.item.blockchainSpecific.valueBalance.unit` | string | no |  |
| `data.item.blockchainSpecific.versionGroupId` | string | yes | String representation of the transaction version group id |
