> For the complete documentation index, see [llms.txt](https://docs.getblock.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getblock.io/api-reference/bitcoin-cash-bch/bitcoin-cash-blockbook-api/bb_gettxspecific-bitcoin-cash.md).

# bb\_getTxSpecific - Bitcoin Cash

This method returns the transaction exactly as the Bitcoin Cash node reports it, in the node's own JSON shape rather than Blockbook's normalized schema.

## Parameters

| Parameter | Type   | Required | Description        |
| --------- | ------ | -------- | ------------------ |
| txid      | string | Yes      | The transaction id |

## Request

{% tabs %}
{% tab title="cURL (REST)" %}
{% code overflow="wrap" %}

```bash
curl --location --request GET 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/tx-specific/10b54fd708ab2e5703979b4ba27ca0339882abc2062e77fbe51e625203a49642'
```

{% endcode %}
{% endtab %}

{% tab title="cURL (JSON-RPC)" %}
{% code overflow="wrap" %}

```bash
curl --location --request POST 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "bb_getTxSpecific",
    "params": [
        "10b54fd708ab2e5703979b4ba27ca0339882abc2062e77fbe51e625203a49642"
    ],
    "id": "getblock.io"
}'
```

{% endcode %}
{% endtab %}

{% tab title="JavaScript" %}
{% code title="example.js" %}

```javascript
const response = await fetch(
    'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/tx-specific/10b54fd708ab2e5703979b4ba27ca0339882abc2062e77fbe51e625203a49642'
);
console.log(await response.json());
```

{% endcode %}
{% endtab %}

{% tab title="Python" %}
{% code title="example.py" %}

```python
import requests

response = requests.get('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/tx-specific/10b54fd708ab2e5703979b4ba27ca0339882abc2062e77fbe51e625203a49642')

print(response.json())
```

{% endcode %}
{% endtab %}
{% endtabs %}

## Response

```json
{
    "txid": "10b54fd708ab2e5703979b4ba27ca0339882abc2062e77fbe51e625203a49642",
    "hash": "10b54fd708ab2e5703979b4ba27ca0339882abc2062e77fbe51e625203a49642",
    "version": 1,
    "size": 226,
    "locktime": 0,
    "vin": [
        {
            "txid": "780791bb2d5a8ccda4b5a707967a8e15b412814852c58c77299e85579bb65587",
            "vout": 1,
            "sequence": 4294967295
        }
    ],
    "vout": [
        {
            "value": 0.09407625,
            "n": 0,
            "scriptPubKey": {
                "type": "pubkeyhash",
                "addresses": [
                    "bitcoincash:qpm2qsznhks23z7629mms6s4cwef74vcwvy22gdx6a"
                ]
            }
        }
    ],
    "blockhash": "0000000000000000023a561e1ea370153aac5d1504726d1a039032831c05fcfc",
    "confirmations": 1197,
    "time": 1617180599,
    "blocktime": 1617180599
}
```

## Response Parameters

| Field         | Type    | Description                                                          |
| ------------- | ------- | -------------------------------------------------------------------- |
| txid          | string  | The transaction id                                                   |
| version       | integer | Transaction version                                                  |
| vin           | array   | Raw inputs as reported by the node                                   |
| vout          | array   | Raw outputs with node-native scriptPubKey and BCH-denominated values |
| confirmations | integer | Number of confirmations                                              |
| blocktime     | integer | Block time as a Unix timestamp                                       |

## Use Cases

* **Node Parity**: Read the node's exact transaction JSON for compatibility
* **Script Inspection**: Access native scriptPubKey fields not in the normalized schema
* **Migration**: Match output from a direct node integration during a switch
* **Debugging**: Compare normalized and node-native views of a transaction

## Error Handling

| Error Code   | Message        | Description                                               |
| ------------ | -------------- | --------------------------------------------------------- |
| 400 / -32602 | Bad request    | The transaction id is not a valid 64-character hex string |
| 404 / -32603 | Not found      | No transaction with the requested id is indexed           |
| 500 / -32603 | Internal error | The indexer failed to read the transaction                |
