A unique stringified document ID
Optional
_idA unique document ID (Mongo DB ObjectID)
The account number of the account. This is the account number registered on the BitBadges blockchain.
Optional
balanceThe $BADGE balance of the account
The BitBadges address of the account
The Bitcoin address of the account
The Eth address of the account
The public key type of the account
The public key of the account
Optional
sequenceThe sequence of the account. This is the nonce for the blockchain for this account
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.
Deep copies the object and returns a new instance.
Converts the object to a different NumberType equivalent.
Optional
options: ConvertOptionsCompares this object's fields to another object's fields for equality. Equality is determined by comparing the JSON representations of the objects.
If normalizeNumberTypes
is true, then all number types will be compared as strings (i.e. "1n" === "1" === 1). Else, they will be compared as their native types (i.e. 1n !== 1 !== "1").
Optional
normalizeNumberTypes: booleanInternal helper method to convert the number fields of the object to a different NumberType equivalent.
Checks if the object has number fields.
Converts the object to a JSON object with all primitive types.
Converts the object to a JSON string.