SDK Reference

    @proveanything/smartlinks

    npm install @proveanything/smartlinks
    View on npm →

    Namespaces

    Other

    attestation

    Functions for attestation operations

    5 functions3 types

    list

    List all attestations for a proof.

    public
    list(collectionId: string,
        productId: string,
        proofId: string) → Promise<[]>

    get

    Get a single attestation by ID.

    public
    get(collectionId: string,
        productId: string,
        proofId: string,
        attestationId: string) → Promise<>

    create

    Create a new attestation for a proof.

    public
    create(collectionId: string,
        productId: string,
        proofId: string,
        data: ) → Promise<>

    update

    Update an attestation. via attestations.create() with a note in metadata instead.

    public
    update(collectionId: string,
        productId: string,
        proofId: string,
        attestationId: string,
        data: ) → Promise<>

    remove

    Delete an attestation. Use attestations.create() to append a corrective/superseding record instead.

    public
    remove(collectionId: string,
        productId: string,
        proofId: string,
        attestationId: string) → Promise<void>