Options
All
  • Public
  • Public/Protected
  • All
Menu

Listener service

Hierarchy

  • Listener

Implements

Index

Constructors

constructor

  • new Listener(config: string, websocketInjected?: any): Listener
  • Constructor

    Parameters

    • config: string

      Listener configuration

    • Optional websocketInjected: any

      (Optional) WebSocket injected when using listeners in client

    Returns Listener

Properties

Private config

config: string

Listener configuration

url

url: string

Private Optional websocketInjected

websocketInjected: any

(Optional) WebSocket injected when using listeners in client

Methods

aggregateBondedAdded

aggregateBondedRemoved

  • aggregateBondedRemoved(address: Address): Observable<string>
  • Returns an observable stream of Transaction Hashes for specific address. Each time an aggregate bonded transaction is announced, it emits a new message with the transaction hash in the event stream.

    Parameters

    • address: Address

      address we listen when a transaction is confirmed or rejected

    Returns Observable<string>

    an observable stream of Strings with the transaction hash

close

  • close(): void

confirmed

  • confirmed(address: Address, transactionHash?: undefined | string): Observable<Transaction>
  • Returns an observable stream of Transaction for a specific address. Each time a transaction is in confirmed state an it involves the address, it emits a new Transaction in the event stream.

    Parameters

    • address: Address

      address we listen when a transaction is in confirmed state

    • Optional transactionHash: undefined | string

      transactionHash for filtering multiple transactions

    Returns Observable<Transaction>

    an observable stream of Transaction with state confirmed

cosignatureAdded

isOpen

  • isOpen(): boolean

newBlock

  • Returns an observable stream of BlockInfo. Each time a new Block is added into the blockchain, it emits a new BlockInfo in the event stream.

    Returns Observable<BlockInfo>

    an observable stream of BlockInfo

open

  • open(): Promise<void>

status

unconfirmedAdded

  • Returns an observable stream of Transaction for a specific address. Each time a transaction is in unconfirmed state an it involves the address, it emits a new Transaction in the event stream.

    Parameters

    • address: Address

      address we listen when a transaction is in unconfirmed state

    Returns Observable<Transaction>

    an observable stream of Transaction with state unconfirmed

unconfirmedRemoved

  • unconfirmedRemoved(address: Address): Observable<string>
  • Returns an observable stream of Transaction Hashes for specific address. Each time a transaction with state unconfirmed changes its state, it emits a new message with the transaction hash in the event stream.

    Parameters

    • address: Address

      address we listen when a transaction is removed from unconfirmed state

    Returns Observable<string>

    an observable stream of Strings with the transaction hash

Generated using TypeDoc