Interface iAccountDoc<T>

interface iAccountDoc<T extends NumberType> {
    _docId: string;
    _id?: string;
    accountNumber: T;
    balance?: iCosmosCoin<T>;
    bitbadgesAddress: string;
    btcAddress: string;
    ethAddress: string;
    pubKeyType: string;
    publicKey: string;
    sequence?: T;
    solAddress: string;
}

Type Parameters

Hierarchy (View Summary, Expand)

Implemented by

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.

balance?: iCosmosCoin<T>

The $BADGE balance of the account

bitbadgesAddress: string

The BitBadges address of the account

btcAddress: string

The Bitcoin address of the account

ethAddress: string

The Eth address of the account

pubKeyType: string

The public key type of the account

publicKey: string

The public key of the account

sequence?: T

The sequence of the account. This is the nonce for the blockchain for this 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.

MMNEPVFCICPMFPCPTTAAATR