The getZPassRecord method retrieves and decrypts a ZPass record from a transaction on the blockchain.
getZPassRecord
transactionId (string): The ID of the transaction containing the ZPass record
transactionId
Returns a Promise that resolves to a string containing the decrypted record data.
const record = await zpass.getZPassRecord("at1xyz...");
Throws SDKError if:
SDKError
No outputs are found in the transaction
No record is found in the transaction outputs
Last updated 1 year ago