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): string
  • Generates mnemonic seed phrase used in wallet creation process.

    Parameters

    • wordCount: number

      12, 15, 18, 21 or 24

    Returns 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

Legend

  • Property
  • Method
  • Property
  • Inherited property
  • Static property

Generated using TypeDoc