> For the complete documentation index, see [llms.txt](https://tna-btc.gitbook.io/tna-whitepaper-2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tna-btc.gitbook.io/tna-whitepaper-2/developer-guide/developer-apis/data-availability/get-block-txids.md).

# Get Block Txids

### Retrieve transaction IDs for a specific block hash in the Bitcoin blockchain

> Code samples

```javascript

const headers = {
  'Accept':'application/json'
};

fetch('/bitcoin/block/{hash}/txids',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

```

`GET /bitcoin/block/{hash}/txids`

#### Parameters <a href="#get__bitcoin_block_-hash-_txids-parameters" id="get__bitcoin_block_-hash-_txids-parameters"></a>

| Name | In   | Type           | Required | Description                                            |
| ---- | ---- | -------------- | -------- | ------------------------------------------------------ |
| hash | path | string(string) | true     | The block hash for which transaction IDs are requested |

> Example responses

> 200 Response

```json
{
  "code": 0,
  "message": "string",
  "data": {
    "txids": [
      "string"
    ]
  }
}
```

#### Responses <a href="#get__bitcoin_block_-hash-_txids-responses" id="get__bitcoin_block_-hash-_txids-responses"></a>

| Status | Meaning                                                 | Description | Schema |
| ------ | ------------------------------------------------------- | ----------- | ------ |
| 200    | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | none        | Inline |

#### Response Schema <a href="#get__bitcoin_block_-hash-_txids-responseschema" id="get__bitcoin_block_-hash-_txids-responseschema"></a>

Status Code **200**

| Name      | Type           | Required | Restrictions | Description                                          |
| --------- | -------------- | -------- | ------------ | ---------------------------------------------------- |
| » code    | integer(int)   | false    | none         | Error code                                           |
| » message | string(string) | false    | none         | Error message                                        |
| » data    | object         | false    | none         | Result data                                          |
| »» txids  | \[string]      | false    | none         | List of transaction IDs for the specified block hash |
