debeem-wallet
interface WalletEntityItem {
    address: string;
    avatar?: string;
    chainCode?: string;
    chainId: number;
    depth?: number;
    fingerprint?: string;
    freePayment?: boolean;
    index: number;
    isHD: boolean;
    mnemonic?: string;
    name: string;
    parentFingerprint?: string;
    password: string;
    path?: null | string;
    pinCode: string;
    privateKey: string;
    publicKey: string;
    remark?: string;
}

Hierarchy

  • TWalletItem
    • WalletEntityItem

Properties

address: string

address of wallet. this, wallet address is the globally unique stored key for storage

avatar?: string

wallet avatar

chainCode?: string

The chaincode, which is effectively a public key used to derive children.

chainId: number

chainId/network

depth?: number

The depth of this wallet, which is the number of components in its path.

fingerprint?: string

The fingerprint.

A fingerprint allows quick qay to detect parent and child nodes,
but developers should be prepared to deal with collisions as it is only 4 bytes.
freePayment?: boolean

Pay freely

index: number

The index of the generated wallet address. For non-HD wallets, the index will always be 0

isHD: boolean

HD wallet?

mnemonic?: string

mnemonic phrase, a word list

name: string

the wallet name

parentFingerprint?: string

The parent fingerprint.

password: string

The password of the wallet, used to encrypt mnemonic and privateKey. If password is not empty, mnemonic and privateKey should be ciphertext

path?: null | string

Wallet path. For non-HD wallets, the path is empty

pinCode: string

the PIN code password for encrypting the local database storage

privateKey: string

private key and public key

publicKey: string
remark?: string

remark text