# List Transactions by Block Hash UTXOs

This endpoint will list transactions by an attribute `transactionHash`. The transactions listed will detail additional information such as addresses, height, time of creation in Unix timestamp, etc.

- **Endpoint:** `GET https://rest.cryptoapis.io/blocks/utxo/{blockchain}/{network}/hash/{blockHash}/transactions`
- **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/blocks-utxos/list-transactions-by-block-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: `testnet`, `mainnet`. |
| `blockHash` | string | yes | Represents the hash of the block, which is its unique identifier. It represents a cryptographic digital fingerprint made by hashing the block header twice through the SHA256 algorithm. |

## 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. |
| `limit` | integer | no | Defines how many items should be returned in the response per page basis. |
| `offset` | integer | no | The starting index of the response items, i.e. where the response should start listing the returned items. |

## 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": {
    "limit": 50,
    "offset": 0,
    "total": 100,
    "items": [
      {
        "id": "0cc869c46a07eea0c0a4e1c6648e28d3c719cd198aea6b0f0811d6699135c1a0",
        "locktime": 1781965,
        "size": 234,
        "version": 1,
        "fee": {
          "amount": "0.00016932",
          "unit": "ZEC"
        },
        "hash": "273eac351a2b76bb98196f3b310eabc787758cf157e8abe726250447185956ed",
        "inputs": [
          {
            "addresses": [
              "tmGf1r6Bo9HFdssAcFpYPehzcn1QyfurEeH"
            ],
            "coinbase": "02d3080c4e060000000000002f4e614e",
            "oututIndex": 1,
            "script": {
              "type": "scripthash"
            },
            "transactionId": "a2022151256fa5d6d3d282f3c0074456fa247da08bc07df71f8c1d9e76e7d928",
            "value": {
              "amount": "0.000144",
              "unit": "ZEC"
            },
            "witnesses": [
              "3045022100c11ea5740bcd69f0f68a4914279838014d28923134d18e05c5a5486dfd06cc8c02200dadccec3f07bed0d1040f9e5a155efa5fdd40fc91f92342578d26848da4c6b901"
            ],
            "outputIndex": 1
          }
        ],
        "outputs": [
          {
            "addresses": [
              "t2UNzUUx8mWBCRYPRezvA363EYXyEpHokyi"
            ],
            "isSpent": true,
            "script": {
              "type": "scripthash"
            },
            "value": {
              "amount": "0.000144",
              "unit": "ZEC"
            }
          }
        ],
        "positionInBlock": 1,
        "recipients": [
          {
            "address": "mvuvhgT5DUjpQ2LBWQhujiFGDZiDHGdHa7",
            "value": {
              "amount": "0.00476076",
              "unit": "ZEC"
            }
          }
        ],
        "senders": [
          {
            "address": "n3NFmt8ibu1FnUqxexrVg4psg88Sx2PMsv",
            "value": {
              "amount": "0.00572702",
              "unit": "ZEC"
            }
          }
        ],
        "blockchainSpecific": {
          "expiryHeight": 1,
          "overwintered": true,
          "valueBalance": {
            "amount": "0"
          },
          "versionGroupId": "0x892f2085"
        }
      }
    ]
  }
}
```

### 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.limit` | integer | yes | Defines how many items should be returned in the response per page basis. |
| `data.offset` | integer | yes | The starting index of the response items, i.e. where the response should start listing the returned items. |
| `data.total` | integer | yes | Defines the total number of items returned in the response. |
| `data.items` | array of object | yes |  |
| `data.items[].id` | string | yes | Represents the unique identifier of a transaction, i.e. it could be `transactionId` in UTXO-based protocols like Bitcoin, and transaction `hash` in Ethereum blockchain. |
| `data.items[].locktime` | integer | yes | Represents the time at which a particular transaction can be added to the blockchain. |
| `data.items[].size` | integer | yes | Represents the total size of this transaction. |
| `data.items[].version` | integer | yes | Numeric representation of the transaction Represents the transaction version number. |
| `data.items[].fee` | object | yes | Object representation of the transaction fee |
| `data.items[].fee.amount` | string | yes | Represents the fee amount. |
| `data.items[].fee.unit` | string | yes | Defines the specific unit of the fee. |
| `data.items[].hash` | string | yes | Represents the same as `transactionId` for account-based protocols like Ethereum, while it could be different in UTXO-based protocols like Bitcoin. E.g., in UTXO-based protocols `hash` is different from `transactionId` for SegWit transactions. |
| `data.items[].inputs` | array of object | yes | Object Array representation of transaction inputs |
| `data.items[].inputs[].addresses` | array of string | no |  |
| `data.items[].inputs[].coinbase` | string | no | Represents the coinbase hex. |
| `data.items[].inputs[].oututIndex` | integer | yes | It refers to the index of the output address of this transaction. The index starts from 0. |
| `data.items[].inputs[].script` | object | yes |  |
| `data.items[].inputs[].script.type` | string | yes | String representation of the votype |
| `data.items[].inputs[].transactionId` | string | yes | Represents the reference transaction identifier. |
| `data.items[].inputs[].value` | object | no |  |
| `data.items[].inputs[].value.amount` | string | no | Defines the specific amount. |
| `data.items[].inputs[].value.unit` | string | no | String representation of the input value unit |
| `data.items[].inputs[].witnesses` | array of string | yes |  |
| `data.items[].inputs[].outputIndex` | integer | yes | It refers to the index of the output address of this transaction. The index starts from 0. |
| `data.items[].outputs` | array of object | yes | Object Array representation of transaction outputs |
| `data.items[].outputs[].addresses` | array of string | no |  |
| `data.items[].outputs[].isSpent` | boolean | yes | Defines whether the transaction output has been spent or not. |
| `data.items[].outputs[].script` | object | yes |  |
| `data.items[].outputs[].script.type` | string | yes | String representation of the type |
| `data.items[].outputs[].value` | object | no |  |
| `data.items[].outputs[].value.amount` | string | no | Represents the specific amount. |
| `data.items[].outputs[].value.unit` | string | no | String representation of the output value unit |
| `data.items[].positionInBlock` | integer | yes | Represents the index position of the transaction in the specific block. |
| `data.items[].recipients` | array of object | yes | Represents a list of recipient addresses with the respective amounts. In account-based protocols like Ethereum there is only one address in this list. |
| `data.items[].recipients[].address` | string | yes | The address which receives this transaction. In UTXO-based protocols like Bitcoin there could be several senders while in account-based protocols like Ethereum there is always only one recipient. |
| `data.items[].recipients[].value` | object | yes |  |
| `data.items[].recipients[].value.amount` | string | yes | Represents the amount received to this address. |
| `data.items[].recipients[].value.unit` | string | yes | String representation of the recipient unit |
| `data.items[].senders` | array of object | yes | Represents a list of sender addresses with the respective amounts. In account-based protocols like Ethereum there is only one address in this list. |
| `data.items[].senders[].address` | string | yes | Represents the address which sends this transaction. In UTXO-based protocols like Bitcoin there could be several senders while in account-based protocols like Ethereum there is always only one sender. |
| `data.items[].senders[].value` | object | yes |  |
| `data.items[].senders[].value.amount` | string | yes | Represents the total amount sent by this address including the fee. |
| `data.items[].senders[].value.unit` | string | yes | String representation of the senders unit |
| `data.items[].blockchainSpecific` | object | no |  |
| `data.items[].blockchainSpecific.expiryHeight` | integer | yes | Represents a block height after which the transaction will expire. |
| `data.items[].blockchainSpecific.overwintered` | boolean | yes | "Overwinter" is the network upgrade for the Zcash blockchain. |
| `data.items[].blockchainSpecific.valueBalance` | object | yes |  |
| `data.items[].blockchainSpecific.valueBalance.amount` | string | yes | Defines the transaction value balance. |
| `data.items[].blockchainSpecific.versionGroupId` | string | yes | Represents the transaction version group ID. |
