> For the complete documentation index, see [llms.txt](https://zpass.docs.aleo.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zpass.docs.aleo.org/zpass-sdk/overview/getzpassrecord.md).

# getZPassRecord

## Description

The `getZPassRecord` method retrieves and decrypts a ZPass record from a transaction on the blockchain.

### Parameters

* **`transactionId` (string)**: The ID of the transaction containing the ZPass record

### Returns

Returns a Promise that resolves to a string containing the decrypted record data.

### Example

```javascript
const record = await zpass.getZPassRecord("at1xyz...");
```

### Errors

Throws `SDKError` if:

* No outputs are found in the transaction
* No record is found in the transaction outputs
