UNPKG

@proveanything/smartlinks

Version:

Official JavaScript/TypeScript SDK for the Smartlinks API

16 lines (15 loc) 614 B
import { ProofResponse } from "../types/proof"; export declare namespace proof { /** * Retrieves a single Proof by Collection ID and Proof ID. * @param collectionId – Identifier of the parent collection * @param proofId – Identifier of the proof * @returns Promise resolving to a ProofResponse object * @throws ErrorResponse if the request fails */ function get(collectionId: string, proofId: string): Promise<ProofResponse>; /** * List all Proofs for a Collection. */ function list(collectionId: string): Promise<ProofResponse[]>; }