Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Account

Account is an API module for managing a node account

extends

API

Hierarchy

  • API
    • Account

Index

Constructors

Methods

Constructors

constructor

Methods

address

  • address(): Promise<string>
  • Retrieve the local node account address

    Returns Promise<string>

    The current node account's address

contact

  • Retrieve the local node account's own contact info

    Returns Promise<Contact>

    The current node account's contact info

seed

  • seed(): Promise<string>
  • Retrieve the local node account seed

    Returns Promise<string>

    The current node account's seed

sync

  • sync(apply?: undefined | false | true, wait?: undefined | number): Promise<ReadableStream<QueryResult>>
  • Syncs the local node account with all thread snapshots found on the network

    Parameters

    • Optional apply: undefined | false | true

      Whether to apply the discovered thread snapshots as they are found (default false)

    • Optional wait: undefined | number

      Stops searching after 'wait' seconds have elapsed (max 30 default 2)

    Returns Promise<ReadableStream<QueryResult>>