@provablehq/sdk
Version:
A Software Development Kit (SDK) for Zero-Knowledge Transactions
14 lines (13 loc) • 509 B
text/typescript
import type { RecordScannerFailure } from "./error.js";
import type { OwnedRecord } from "../record-provider/ownedRecord.js";
/**
* Success variant of ownedRecords() result.
*
* @property ok - Whether the request was successful, always true for this interface variant.
* @property data - List of owned records corresponding to the filter used.
*/
export interface OwnedRecordsSuccess {
ok: true;
data: OwnedRecord[];
}
export type OwnedRecordsResult = OwnedRecordsSuccess | RecordScannerFailure;