# 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
```
