# List Transactions by Block Height UTXOs

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

- **Endpoint:** `GET https://rest.cryptoapis.io/blocks/utxo/{blockchain}/{network}/height/{blockHeight}/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-height-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`, `dash`, `dogecoin`, `litecoin`, `bitcoin-cash`, `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`. |
| `blockHeight` | integer | yes | Represents the number of blocks in the blockchain preceding this specific block. Block numbers have no gaps. A blockchain usually starts with block 0 called the "Genesis block". |

## 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": [
      {
        "fee": {
          "amount": "0.123",
          "unit": "ZEC"
        },
        "hash": "1ec73b0f61359927d02376b35993b756b1097cb9a857bec23da4c98c4977d2b2",
        "id": "32d214cc3c96968ca83b30aa61f0e2fdfc9052b37926f29bb6ec0ae7a4feed9d",
        "locktime": 123,
        "positionInBlock": 1,
        "size": 123,
        "timestamp": 1618208236,
        "version": 1,
        "inputs": [
          {
            "addresses": [
              "t2UNzUUx8mWBCRYPRezvA363EYXyEpHokyi"
            ],
            "coinbase": "02d3080c4e060000000000002f4e614e",
            "outputIndex": 1,
            "script": {
              "type": "pubkeyhash"
            },
            "transactionId": "a2022151256fa5d6d3d282f3c0074456fa247da08bc07df71f8c1d9e76e7d928",
            "value": {
              "amount": "0.002324",
              "unit": "ZEC"
            },
            "witnesses": [
              "3045022100c11ea5740bcd69f0f68a4914279838014d28923134d18e05c5a5486dfd06cc8c02200dadccec3f07bed0d1040f9e5a155efa5fdd40fc91f92342578d26848da4c6b901"
            ]
          }
        ],
        "outputs": [
          {
            "addresses": [
              "t2UNzUUx8mWBCRYPRezvA363EYXyEpHokyi"
            ],
            "isSpent": true,
            "script": {
              "type": "pubkeyhash"
            },
            "value": {
              "amount": "0.000144",
              "unit": "ZEC"
            }
          }
        ],
        "recipients": [
          {
            "address": "yEpHokyit2UNzUUx8mWBCRYPRezvA363EYX",
            "value": {
              "amount": "0.000144",
              "unit": "ZEC"
            },
            "addresses": "2MzakdGTEp8SMWEHKwKM4HYv6uNCBXtHpkV"
          }
        ],
        "senders": [
          {
            "address": "t2UNzUUx8mWBCRYPRezvA363EYXyEpHokyi",
            "value": {
              "amount": "0.00873472",
              "unit": "ZEC"
            },
            "addresses": "2N5PcdirZUzKF9bWuGdugNuzcQrCbBudxv1"
          }
        ],
        "blockchainSpecific": {
          "expiryHeight": 123,
          "overwintered": true,
          "valueBalance": {
            "amount": "0.123"
          },
          "versionGroupId": "0b292f2085"
        }
      }
    ]
  }
}
```

### 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[].fee` | object | yes | Object representation of the transaction fee |
| `data.items[].fee.amount` | string | yes | String representation of the fee value |
| `data.items[].fee.unit` | string | yes | String representation of the fee unit |
| `data.items[].hash` | string | yes | Represents the unique identifier of a transaction |
| `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 | Numeric representation of the transaction locktime |
| `data.items[].positionInBlock` | integer | yes | Numeric representation of the transaction index |
| `data.items[].size` | integer | yes | Numeric representation of the transaction size |
| `data.items[].timestamp` | integer | yes | Numeric representation of the timestamp in seconds since epoch |
| `data.items[].version` | integer | yes | Numeric representation of the transaction version |
| `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 | String representation of the coinbase hex |
| `data.items[].inputs[].outputIndex` | integer | yes | Numeric representation of the vout |
| `data.items[].inputs[].script` | object | yes |  |
| `data.items[].inputs[].script.type` | string | yes | String representation of the votype |
| `data.items[].inputs[].transactionId` | string | yes | String representation of the txid |
| `data.items[].inputs[].value` | object | no |  |
| `data.items[].inputs[].value.amount` | string | no | String representation of the amount |
| `data.items[].inputs[].value.unit` | string | no |  |
| `data.items[].inputs[].witnesses` | array of string | no |  |
| `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 | Boolean representation of is the transaction output spent |
| `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 | String representation of the amount |
| `data.items[].outputs[].value.unit` | string | no |  |
| `data.items[].recipients` | array of object | yes | Object Array representation of transaction receivers |
| `data.items[].recipients[].address` | string | yes | String representation of the receiver address |
| `data.items[].recipients[].value` | object | yes |  |
| `data.items[].recipients[].value.amount` | string | yes | String representation of the amount |
| `data.items[].recipients[].value.unit` | string | yes |  |
| `data.items[].recipients[].addresses` | string | yes | String representation of the receiver address |
| `data.items[].senders` | array of object | yes | Object Array representation of transaction senders |
| `data.items[].senders[].address` | string | yes | String array representation of the sender address |
| `data.items[].senders[].value` | object | yes |  |
| `data.items[].senders[].value.amount` | string | yes | String representation of the amount |
| `data.items[].senders[].value.unit` | string | yes |  |
| `data.items[].senders[].addresses` | string | yes | String array representation of the sender address |
| `data.items[].blockchainSpecific` | object | no |  |
| `data.items[].blockchainSpecific.expiryHeight` | integer | yes | Numeric representation of the transaction block height expiration |
| `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 | String representation of the transaction value balance |
| `data.items[].blockchainSpecific.versionGroupId` | string | yes | String representation of the transaction version group id |
