bitbadgesjs-sdk - v0.22.7
    Preparing search index...

    Class FetchDoc<T>

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    _docId: string

    A unique stringified document ID

    _id?: string

    A unique document ID (Mongo DB ObjectID)

    content?:
        | Metadata<T>
        | ApprovalInfoDetails<T>
        | { [bitbadgesAddressOrListId: string]: BalanceArray<T> }
        | ChallengeDetails<T>

    The content of the fetch document. Note that we store balances in BALANCES_DB and not here to avoid double storage.

    db: "ApprovalInfo" | "Metadata" | "Balances" | "ChallengeInfo"

    The type of content fetched. This is used for querying purposes

    fetchedAt: T

    The time the document was fetched

    fetchedAtBlock: T

    The block the document was fetched

    isPermanent: boolean

    True if the document is permanent (i.e. fetched from a permanent URI like IPFS)

    Methods