> For the complete documentation index, see [llms.txt](https://docs.cryptum.io/english/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cryptum.io/english/community-edition/sdk-guides/queries/get-transaction-by-hash.md).

# Get transaction by hash

#### `sdk.transaction.getTransactionByHash(opts)`

* `opts.hash` (string)(**required**) - transaction hash.
* `opts.protocol` (string)(**required**) - blockchain protocol.

```javascript
const tx = await sdk.transaction.getTransactionByHash({ hash: '<hash>', protocol: 'STELLAR' })
// Blockchain raw transaction returned
```
