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

    Interface iBitBadgesUserInfo<T>

    interface iBitBadgesUserInfo<T extends NumberType> {
        _docId: string;
        _id?: string;
        accountNumber: T;
        activity: iTransferActivityDoc<T>[];
        address: string;
        affiliateCode?: string;
        airdropped?: boolean;
        alias?: { collectionId?: string };
        approvalTrackers: iApprovalTrackerDoc<T>[];
        avatar?: string;
        balances?: iCosmosCoin<T>[];
        bannerImage?: string;
        bitbadgesAddress: string;
        bluesky?: string;
        btcAddress: string;
        chain: SupportedChain;
        challengeTrackers: iMerkleChallengeTrackerDoc<T>[];
        claimActivity?: iClaimActivityDoc<T>[];
        collected: iBalanceDocWithDetails<T>[];
        createdAt?: T;
        creatorCredits?: iCreatorCreditsDoc<T>;
        customLinks?: iCustomLink[];
        discord?: string;
        ethAddress: string;
        fetchedProfile?: "full" | "partial";
        github?: string;
        hiddenTokens?: iBatchTokenDetails<T>[];
        latestSignedInChain?: SupportedChain;
        notifications?: iNotificationPreferences<T>;
        nsfw?: { reason: string };
        pointsActivity?: iPointsActivityDoc<T>[];
        profilePicUrl?: string;
        pubKeyType: string;
        publicKey: string;
        publicSocialConnections?: iSocialConnections<T>;
        readme?: string;
        reported?: { reason: string };
        resolvedName?: string;
        seenActivity?: T;
        sequence?: T;
        siwbbRequests: iSIWBBRequestDoc<T>[];
        socialConnections?: iSocialConnections<T>;
        solAddress: string;
        telegram?: string;
        thorAddress: string;
        twitter?: string;
        username?: string;
        views: {
            [viewId: string]:
                | undefined
                | { ids: string[]; pagination: PaginationInfo; type: string };
        };
    }

    Type Parameters

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    _docId: string

    A unique stringified document ID

    _id?: string

    A unique document ID (Mongo DB ObjectID)

    accountNumber: T

    The account number of the account. This is the account number registered on the BitBadges blockchain.

    activity: iTransferActivityDoc<T>[]

    A list of transfer activity items for the account. Paginated and fetched as needed. To be used in conjunction with views.

    address: string

    The native address of the account

    affiliateCode?: string

    Affiliate code

    airdropped?: boolean

    Indicates whether the account has claimed their airdrop.

    alias?: { collectionId?: string }

    For advanced cases where you want a custom address or account for a collection or list. We map it to an account.

    Experimental - For example, if you want to send a badge to a collection, you can transfer it to the alias account.

    approvalTrackers: iApprovalTrackerDoc<T>[]

    A list of approvals tracker activity items for the account. Paginated and fetched as needed. To be used in conjunction with views.

    avatar?: string

    The avatar of the account.

    balances?: iCosmosCoin<T>[]

    The BADGE balance of the account and other sdk.coin balances

    bannerImage?: string

    The banner image URL of the account

    bitbadgesAddress: string

    The BitBadges address of the account

    bluesky?: string

    The Bluesky username of the account

    btcAddress: string

    The Bitcoin address of the account

    The chain of the account.

    challengeTrackers: iMerkleChallengeTrackerDoc<T>[]

    A list of merkle challenge activity items for the account. Paginated and fetched as needed. To be used in conjunction with views.

    claimActivity?: iClaimActivityDoc<T>[]

    A list of claim activity items for the account. Paginated and fetched as needed. To be used in conjunction with views.

    A list of tokens that the account has collected. Paginated and fetched as needed. To be used in conjunction with views.

    createdAt?: T

    The timestamp of when this account was created (milliseconds since epoch)

    creatorCredits?: iCreatorCreditsDoc<T>

    The credits for the account.

    customLinks?: iCustomLink[]

    The custom links of the account

    discord?: string

    The Discord username of the account

    ethAddress: string

    The Eth address of the account

    fetchedProfile?: "full" | "partial"

    Whether we have already fetched the profile or not

    github?: string

    The GitHub username of the account

    hiddenTokens?: iBatchTokenDetails<T>[]

    The hidden badges of the account

    latestSignedInChain?: SupportedChain

    The latest chain the user signed in with

    notifications?: iNotificationPreferences<T>

    The notifications of the account

    nsfw?: { reason: string }

    Indicates whether the account is NSFW.

    pointsActivity?: iPointsActivityDoc<T>[]

    A list of points activity items for the account. Paginated and fetched as needed. To be used in conjunction with views.

    profilePicUrl?: string

    The profile picture URL of the account

    pubKeyType: string

    The public key type of the account

    publicKey: string

    The public key of the account

    publicSocialConnections?: iSocialConnections<T>

    Public social connections stored for the account

    readme?: string

    The readme of the account

    reported?: { reason: string }

    Indicates whether the account has been reported.

    resolvedName?: string

    The resolved name of the account (e.g. ENS name).

    seenActivity?: T

    The timestamp of the last activity seen for this account (milliseconds since epoch)

    sequence?: T

    The sequence of the account. This is the nonce for the blockchain for this account

    siwbbRequests: iSIWBBRequestDoc<T>[]

    A list of SIWBB requests for the account. Paginated and fetched as needed. To be used in conjunction with views.

    socialConnections?: iSocialConnections<T>

    Social connections stored for the account

    solAddress: string

    The Solana address of the account. Note: This may be empty if we do not have it yet. Solana -> BitBadges address conversions are one-way, and we cannot convert a BitBadges address to a Solana address without prior knowledge.

    telegram?: string

    The Telegram username of the account

    thorAddress: string

    The Thorchain address of the account

    twitter?: string

    The Twitter username of the account

    username?: string

    The username of the account

    views: {
        [viewId: string]:
            | undefined
            | { ids: string[]; pagination: PaginationInfo; type: string };
    }

    The views for this collection and their pagination Doc. Views will only include the doc _ids. Use the pagination to fetch more. For example, if you want to fetch the activity for a view, you would use the view's pagination to fetch the doc _ids, then use the corresponding activity array to find the matching docs.