> ## Documentation Index
> Fetch the complete documentation index at: https://docs.validationcloud.io/llms.txt
> Use this file to discover all available pages before exploring further.

# GET /scripthash/:hash/txs/chain[/:last_seen_txid]

Get confirmed transaction history for the specified scripthash, sorted with newest first.

This method will use `10` [Compute Units](/nodeapi/about/billing).

***

## **Parameters**

**`scripthash`** - required.

**`last_seen_txid`** - optional, to retrieve more than 25 transactions.

## Returns

Get confirmed transaction history for the specified scripthash, sorted with newest first.

Returns 25 transactions per page. More can be requested by specifying the last txid seen by the previous query.

<CodeGroup>
  ```bash title="mainnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
  curl https://mainnet.bitcoin.validationcloud.io/v1/<YOUR_API_KEY_HERE>/scripthash/<scripthash>/txs/chain[/:last_seen_txid] \
   -X GET
  ```

  ```bash title="testnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
  curl https://testnet.bitcoin.validationcloud.io/v1/<YOUR_API_KEY_HERE>/scripthash/<scripthash>/txs/chain[/:last_seen_txid] \
   -X GET
  ```
</CodeGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.