Home Reference Source
public class | source

InterfaceBlockchainTransactionsEvents

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

emitter: *

Method Summary

Public Methods
public

emitTransactionChangeEvent(transaction: *, deleted: boolean): boolean

public

findTransaction(txId: *): *

public

listTransactions(addressWIF: *, maxBlockCount: number): *

public

subscribeTransactionsChanges(addressWIF: *, callback: *): {"result": boolean, "subscription": *, "transactions": *}

public
Private Methods
private
private

_searchAddressInTransaction(unencodedAddress: *, transaction: *): boolean

Public Constructors

public constructor() source

Public Members

public blockchain: * source

public emitter: * source

Public Methods

public emitTransactionChangeEvent(transaction: *, deleted: boolean): boolean source

Params:

NameTypeAttributeDescription
transaction *
deleted boolean
  • optional
  • default: false

Return:

boolean

public findTransaction(txId: *): * source

Params:

NameTypeAttributeDescription
txId *

Return:

*

public listTransactions(addressWIF: *, maxBlockCount: number): * source

Params:

NameTypeAttributeDescription
addressWIF *
maxBlockCount number
  • optional
  • default: 50

Return:

*

public subscribeTransactionsChanges(addressWIF: *, callback: *): {"result": boolean, "subscription": *, "transactions": *} source

Params:

NameTypeAttributeDescription
addressWIF *
callback *

Return:

{"result": boolean, "subscription": *, "transactions": *}

public unsusbribeTransactionsChanges(subscription: *): boolean source

Params:

NameTypeAttributeDescription
subscription *

Return:

boolean

Private Methods

private _checkTransactionIsSubscribed(address: *): boolean source

Params:

NameTypeAttributeDescription
address *

Return:

boolean

private _searchAddressInTransaction(unencodedAddress: *, transaction: *): boolean source

Params:

NameTypeAttributeDescription
unencodedAddress *
transaction *

Return:

boolean