Class: Subscriber
Table of contents
Constructors
Methods
Constructors
constructor
• new Subscriber(provider
)
Parameters
Name | Type |
---|---|
provider | ProviderRpcClient |
Defined in
Methods
transactions
▸ transactions(address
): IdentityStream
<{ address
: Address
; transactions
: Transaction
<Address
>[] ; info
: TransactionsBatchInfo
}, false
>
Returns a stream of new transactions
Parameters
Name | Type |
---|---|
address | Address |
Returns
IdentityStream
<{ address
: Address
; transactions
: Transaction
<Address
>[] ; info
: TransactionsBatchInfo
}, false
>
Defined in
trace
▸ trace(transaction
): IdentityStream
<TransactionWithAccount
<Address
>, true
>
Returns a finite stream of child transactions
Parameters
Name | Type | Description |
---|---|---|
transaction | Transaction <Address > | root transaction |
Returns
IdentityStream
<TransactionWithAccount
<Address
>, true
>
Defined in
oldTransactions
▸ oldTransactions(address
, filter?
): IdentityStream
<{ address
: Address
; transactions
: Transaction
<Address
>[] ; info
: TransactionsBatchInfo
}, true
>
Returns a stream of old transactions
Parameters
Name | Type |
---|---|
address | Address |
filter? | Object |
filter.fromLt? | string |
filter.fromUtime? | number |
Returns
IdentityStream
<{ address
: Address
; transactions
: Transaction
<Address
>[] ; info
: TransactionsBatchInfo
}, true
>
Defined in
states
▸ states(address
): IdentityStream
<{ address
: Address
; state
: ContractState
}, false
>
Parameters
Name | Type |
---|---|
address | Address |
Returns
IdentityStream
<{ address
: Address
; state
: ContractState
}, false
>
Defined in
unsubscribe
▸ unsubscribe(): Promise
<void
>
Returns
Promise
<void
>