pendingTransactions method

Stream<String> pendingTransactions()

Listens for pending transactions as they are received by the connected node. The stream will emit the hexadecimal hash of the pending transaction.

The stream can only be listened to once. The subscription must be disposed properly when no longer used. Failing to do so causes a memory leak in your application and uses unnecessary resources on the connected node. See also:

  • hexToBytes and hexToInt, which can transform hex strings into a byte or integer representation.

Implementation

Stream<String> pendingTransactions() {
  return _filters.addFilter(_PendingTransactionsFilter());
}