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

    Class BitBadgesUserInfo<T>

    BitBadgesUserInfo is the type for accounts returned by the BitBadges API. It includes all Docrmation about an account.

    Note that returned user Docs will only fetch what is requested. It is your responsibility to join the data together (paginations, etc). See documentation for helper functions, examples, and tutorials on handling this data and paginations.

    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)

    accountNumber: T

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

    activity: TransferActivityDoc<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: ApprovalTrackerDoc<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?: CosmosCoin<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: MerkleChallengeTrackerDoc<T>[]

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

    claimActivity?: ClaimActivityDoc<T>[]

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

    collected: BalanceDocWithDetails<T>[]

    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?: CreatorCreditsDoc<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?: BatchTokenDetailsArray<T>

    The hidden badges of the account

    latestSignedInChain?: SupportedChain

    The latest chain the user signed in with

    notifications?: NotificationPreferences<T>

    The notifications of the account

    nsfw?: { reason: string }

    Indicates whether the account is NSFW.

    pointsActivity?: PointsActivityDoc<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?: SocialConnections<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: SIWBBRequestDoc<T>[]

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

    socialConnections?: SocialConnections<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.

    Methods