Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RadixAccount

Hierarchy

  • RadixAccount

Index

Constructors

constructor

Properties

Private accountSystems

accountSystems: TSMap<string, RadixAccountSystem> = new TSMap()

address

address: RadixAddress

Address of the account

Private atomSubscription

atomSubscription: Subject<RadixAtomUpdate>

cacheSystem

connectionStatus

connectionStatus: BehaviorSubject<string> = new BehaviorSubject('STARTING')

dataSystem

decryptionSystem

messagingSystem

Private nodeConnection

nodeConnection: RadixNodeConnection

Private synced

synced: BehaviorSubject<boolean> = new BehaviorSubject(false)

tokenDefinitionSystem

tokenDefinitionSystem: RadixTokenDefinitionAccountSystem

transferSystem

Methods

_onAtomReceived

Private _onConnectionClosed

  • _onConnectionClosed(): void

addAccountSystem

closeNodeConnection

  • closeNodeConnection(): Promise<any>
  • Unsubscribes the node connection to the stream of past and future atoms associated with this address account

    Returns Promise<any>

    A promise with the result of the unsubscription call

enableCache

enableDecryption

getAddress

  • getAddress(): string

getSystem

isSynced

  • isSynced(): Observable<boolean>
  • An observable that tells you when the account is in sync with the network

    Returns Observable<boolean>

    An observable which sends 'true' whenever the account has received and processed new information form the network

openNodeConnection

  • openNodeConnection(): Promise<void>

removeAccountSystem

  • removeAccountSystem(name: string): void

Static fromAddress

  • fromAddress(address: string, plain?: boolean): RadixAccount

Static fromSeed

  • Create an instance of a Radix account from an arbitrary byte buffer. This could e.g. be a friendly name of an account, in which case it would be created as Buffer.from('friendly name').

    Parameters

    • seed: Buffer

      Buffer seed for the address

    • Default value plain: boolean = false

    Returns RadixAccount

    a new Radix account.

Generated using TypeDoc