Skip to content
On this page

Class: Subscriber

Table of contents

Constructors

Methods

Constructors

constructor

new Subscriber(provider)

Parameters

NameType
providerProviderRpcClient

Defined in

src/stream.ts:29

Methods

transactions

transactions(address): IdentityStream<{ address: Address ; transactions: Transaction<Address>[] ; info: TransactionsBatchInfo }, false>

Returns a stream of new transactions

Parameters

NameType
addressAddress

Returns

IdentityStream<{ address: Address ; transactions: Transaction<Address>[] ; info: TransactionsBatchInfo }, false>

Defined in

src/stream.ts:35


trace

trace(transaction): IdentityStream<TransactionWithAccount<Address>, true>

Returns a finite stream of child transactions

Parameters

NameTypeDescription
transactionTransaction<Address>root transaction

Returns

IdentityStream<TransactionWithAccount<Address>, true>

Defined in

src/stream.ts:43


oldTransactions

oldTransactions(address, filter?): IdentityStream<{ address: Address ; transactions: Transaction<Address>[] ; info: TransactionsBatchInfo }, true>

Returns a stream of old transactions

Parameters

NameType
addressAddress
filter?Object
filter.fromLt?string
filter.fromUtime?number

Returns

IdentityStream<{ address: Address ; transactions: Transaction<Address>[] ; info: TransactionsBatchInfo }, true>

Defined in

src/stream.ts:77


states

states(address): IdentityStream<{ address: Address ; state: ContractState }, false>

Parameters

NameType
addressAddress

Returns

IdentityStream<{ address: Address ; state: ContractState }, false>

Defined in

src/stream.ts:112


unsubscribe

unsubscribe(): Promise<void>

Returns

Promise<void>

Defined in

src/stream.ts:116