Constructor
Listener websocket server url. default: rest-gateway's url with ''/ws'' suffix. (e.g. http://localhost:3000/ws).
NamespaceRepository interface for resolving alias.
(Optional) WebSocket injected when using listeners in client.
Multisig repository for resolving multisig accounts
NamespaceRepository interface for resolving alias.
Listener websocket server url. default: rest-gateway's url with ''/ws'' suffix. (e.g. http://localhost:3000/ws).
(Optional) WebSocket injected when using listeners in client.
Return an observable of AggregateTransaction for specific address. Each time an aggregate bonded transaction is announced, it emits a new AggregateTransaction in the event stream.
unresolved address we listen when a transaction with missing signatures state
transactionHash for filtering multiple transactions
When true
cosigner's multisig account will also be subscribed to the channel
an observable stream of AggregateTransaction with missing signatures state
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.
unresolved address we listen when a transaction is confirmed or rejected
the transaction hash filter.
When true
cosigner's multisig account will also be subscribed to the channel
an observable stream of Strings with the transaction hash
Close web socket connection.
void
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.
unresolved address we listen when a transaction is in confirmed state
transactionHash for filtering multiple transactions
When true
cosigner's multisig account will also be subscribed to the channel
an observable stream of Transaction with state confirmed
Returns an observable stream of CosignatureSignedTransaction for specific address.
Each time a cosigner signs a transaction the address initialized,
it emits a new message with the cosignatory signed transaction in the even stream.
this.subscribeTo(cosignature/${address.plain()}
;
unresolved address we listen when a cosignatory is added to some transaction address sent
When true
cosigner's multisig account will also be subscribed to the channel
an observable stream of CosignatureSignedTransaction
Filters the transaction by hash if provided.
the transaction
the hash.
Returns an observable stream of finalized block info. Each time a new Block is finalized into the blockchain, it emits a new FinalizedBlock in the event stream.
an observable stream of BlockInfo
returns a boolean that repressents the open state
a boolean
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.
an observable stream of BlockInfo
Open web socket connection.
Promise
Returns an observable stream of TransactionStatusError for specific address. Each time a transaction contains an error, it emits a new message with the transaction status error in the event stream.
unresolved address we listen to be notified when some error happened
transactionHash for filtering multiple transactions
an observable stream of TransactionStatusError
Subscribe cosigner's multisig addresses
cosigner address
channel name to subscribe
subscribe multisig account
Generic subscription for all the transaction hash based channels.
the channel
the unresolved address
the transaction hash (optional)
When true
cosigner's multisig account will also be subscribed to the channel
an observable stream of Strings with the transaction hash
Basic subscription for all the transactions status.
the transaction based channel
the unresolved address
the transaction hash filter.
When true
cosigner's multisig account will also be subscribed to the channel
an observable stream of Transactions
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.
unresolved address we listen when a transaction is in unconfirmed state
transactionHash for filtering multiple transactions
When true
cosigner's multisig account will also be subscribed to the channel
an observable stream of Transaction with state unconfirmed
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.
unresolved address we listen when a transaction is removed from unconfirmed state
the transaction hash filter.
When true
cosigner's multisig account will also be subscribed to the channel
an observable stream of Strings with the transaction hash
Generated using TypeDoc
Listener service