Hierarchy

  • Account

Constructors

Properties

index: bigint

Methods

  • Get a list of addresses from index start to end with type, which could be recieve/change

    Parameters

    • start: number
    • end: number
    • type: AddressType = AddressType.Receive

    Returns Promise<Address[]>

  • Return balance of all addresses in this Account

    Returns Promise<bigint>

  • Scans all addresses, including recieve/change up to Config.MAX_SCAN_SIZE, which defaults to 5000.

    Addresses without UTXOs will be filtered

    You don't have to explicitly call this method before calling other methods like send or balance, as it will be taken care of by the library.

    Returns Promise<Address[]>

  • Initialize an Account object from private key string and account index

    Parameters

    Returns Promise<Account>

Generated using TypeDoc