# 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://zpass.docs.aleo.org/zpass-sdk/overview/getzpassrecord.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
