Options
All
  • Public
  • Public/Protected
  • All
Menu

Crypto utility interface describes methods for mnemonic phrase generation and Bitcoin/Ethereum address validation.

Hierarchy

  • Utils

Index

Methods

generateMnemonic

  • generateMnemonic(wordCount: number): Promise<string>
  • Generates mnemonic seed phrase used in wallet creation process.

    Parameters

    • wordCount: number

      12, 15, 18, 21 or 24

    Returns Promise<string>

isValidAddress

  • Validates Ethereum, Bitcoin or Bitcoin SV address.

    Parameters

    • currencyCode: CurrencyCode

      'ETH', 'BTC or 'BSV'

    • address: string

      blockchain address

    • network: Network

      network type

    Returns boolean

isValidEthAddress

  • isValidEthAddress(address: string): Promise<boolean>
  • Validates Ethereum address.

    Parameters

    • address: string

      Ethereum address

    Returns Promise<boolean>

Legend

  • Property
  • Method
  • Inherited property
  • Static property

Generated using TypeDoc