Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Account

Hierarchy

  • Account

Index

Properties

Private last4BitsMask

last4BitsMask: BN = new BN(15)

Private password

password: string = "jingbo is handsome!"

Methods

Private addChecksum

  • addChecksum(data: any): BN

checkAddress

  • checkAddress(address: string): boolean

checkMnemonic

  • checkMnemonic(mnemonic: string, language: Language): boolean

create

Private decryptPrivateKey

  • decryptPrivateKey(password: string, keyStr: string): string

Private encryptPrivateKey

  • encryptPrivateKey(password: string, privateKey: PrivateKey): string

export

  • export(password: string, privateKey: PrivateKey): string

Private generateAddress

Private generateEntropy

  • generateEntropy(strength: Strength): Uint8Array

Private generateKeyBySeed

  • generateKeyBySeed(curve: EC, seed: any): PrivateKey

Private generateMnemonic

  • generateMnemonic(entropy: ArrayBuffer, language: Language): string

Private generateSeed

  • generateSeed(mnemonic: string, password: string, keyLen: number, language: Language): any

getBalance

  • getBalance(address: string, node: string, chain: string): Promise<any>
  • Parameters

    • address: string
    • node: string
    • chain: string

    Returns Promise<any>

getBalanceDetail

  • getBalanceDetail(address: string, node: string, chain: string): Promise<any>
  • Parameters

    • address: string
    • node: string
    • chain: string

    Returns Promise<any>

Private getWordListByLanguage

  • getWordListByLanguage(language: Language): Array<string>

import

  • import(password: string, privateKeyStr: string): AccountModel

retrieve