public interface Web3jRx
Modifier and Type | Method and Description |
---|---|
io.reactivex.Flowable<EthBlock> |
blockFlowable(boolean fullTransactionObjects)
Create an
Flowable instance that emits newly created blocks on the blockchain. |
io.reactivex.Flowable<java.lang.String> |
ethBlockHashFlowable()
Create an Flowable to emit block hashes.
|
io.reactivex.Flowable<Log> |
ethLogFlowable(EthFilter ethFilter)
Create an flowable to filter for specific log events on the blockchain.
|
io.reactivex.Flowable<java.lang.String> |
ethPendingTransactionHashFlowable()
Create an Flowable to emit pending transactions, i.e.
|
io.reactivex.Flowable<LogNotification> |
logsNotifications(java.util.List<java.lang.String> addresses,
java.util.List<java.lang.String> topics)
Creates aa
Flowable instance that emits notifications for logs included in new
imported blocks. |
io.reactivex.Flowable<NewHeadsNotification> |
newHeadsNotifications()
Creates a
Flowable instance that emits a notification when a new header is appended
to a chain, including chain reorganizations. |
io.reactivex.Flowable<Transaction> |
pendingTransactionFlowable()
Create an
Flowable instance to emit all pending transactions that have yet to be
placed into a block on the blockchain. |
io.reactivex.Flowable<EthBlock> |
replayPastAndFutureBlocksFlowable(DefaultBlockParameter startBlock,
boolean fullTransactionObjects)
Creates a
Flowable instance that emits all blocks from the requested block number
to the most current. |
io.reactivex.Flowable<Transaction> |
replayPastAndFutureTransactionsFlowable(DefaultBlockParameter startBlock)
As per
replayPastAndFutureBlocksFlowable(DefaultBlockParameter, boolean) ,
except that all transactions contained within the blocks are emitted. |
io.reactivex.Flowable<EthBlock> |
replayPastBlocksFlowable(DefaultBlockParameter startBlock,
boolean fullTransactionObjects)
Creates a
Flowable instance that emits all blocks from the requested block number
to the most current. |
io.reactivex.Flowable<EthBlock> |
replayPastBlocksFlowable(DefaultBlockParameter startBlock,
boolean fullTransactionObjects,
io.reactivex.Flowable<EthBlock> onCompleteFlowable)
Create a
Flowable instance that emits all transactions from the blockchain
starting with a provided block number. |
io.reactivex.Flowable<EthBlock> |
replayPastBlocksFlowable(DefaultBlockParameter startBlock,
DefaultBlockParameter endBlock,
boolean fullTransactionObjects)
Create an
Flowable instance that emits all blocks from the blockchain contained
within the requested range. |
io.reactivex.Flowable<EthBlock> |
replayPastBlocksFlowable(DefaultBlockParameter startBlock,
DefaultBlockParameter endBlock,
boolean fullTransactionObjects,
boolean ascending)
Create an
Flowable instance that emits all blocks from the blockchain contained
within the requested range. |
io.reactivex.Flowable<Transaction> |
replayPastTransactionsFlowable(DefaultBlockParameter startBlock)
Creates a
Flowable instance that emits all transactions from the requested block
number to the most current. |
io.reactivex.Flowable<Transaction> |
replayPastTransactionsFlowable(DefaultBlockParameter startBlock,
DefaultBlockParameter endBlock)
Create a
Flowable instance that emits all transactions from the blockchain
contained within the requested range. |
io.reactivex.Flowable<Transaction> |
transactionFlowable()
Create an
Flowable instance to emit all new transactions as they are confirmed on
the blockchain. |
io.reactivex.Flowable<Log> ethLogFlowable(EthFilter ethFilter)
ethFilter
- filter criteriaFlowable
instance that emits all Log events matching the filterio.reactivex.Flowable<java.lang.String> ethBlockHashFlowable()
Flowable
instance that emits all new block hashes as new blocks are
created on the blockchainio.reactivex.Flowable<java.lang.String> ethPendingTransactionHashFlowable()
Flowable
instance to emit pending transaction hashes.io.reactivex.Flowable<Transaction> transactionFlowable()
Flowable
instance to emit all new transactions as they are confirmed on
the blockchain. i.e. they have been mined and are incorporated into a block.Flowable
instance to emit new transactions on the blockchainio.reactivex.Flowable<Transaction> pendingTransactionFlowable()
Flowable
instance to emit all pending transactions that have yet to be
placed into a block on the blockchain.Flowable
instance to emit pending transactionsio.reactivex.Flowable<EthBlock> blockFlowable(boolean fullTransactionObjects)
Flowable
instance that emits newly created blocks on the blockchain.fullTransactionObjects
- if true, provides transactions embedded in blocks, otherwise
transaction hashesFlowable
instance that emits all new blocks as they are added to the
blockchainio.reactivex.Flowable<EthBlock> replayPastBlocksFlowable(DefaultBlockParameter startBlock, DefaultBlockParameter endBlock, boolean fullTransactionObjects)
Flowable
instance that emits all blocks from the blockchain contained
within the requested range.startBlock
- block number to commence withendBlock
- block number to finish withfullTransactionObjects
- if true, provides transactions embedded in blocks, otherwise
transaction hashesFlowable
instance to emit these blocksio.reactivex.Flowable<EthBlock> replayPastBlocksFlowable(DefaultBlockParameter startBlock, DefaultBlockParameter endBlock, boolean fullTransactionObjects, boolean ascending)
Flowable
instance that emits all blocks from the blockchain contained
within the requested range.startBlock
- block number to commence withendBlock
- block number to finish withfullTransactionObjects
- if true, provides transactions embedded in blocks, otherwise
transaction hashesascending
- if true, emits blocks in ascending order between range, otherwise
in descending orderFlowable
instance to emit these blocksio.reactivex.Flowable<EthBlock> replayPastBlocksFlowable(DefaultBlockParameter startBlock, boolean fullTransactionObjects, io.reactivex.Flowable<EthBlock> onCompleteFlowable)
Flowable
instance that emits all transactions from the blockchain
starting with a provided block number. Once it has replayed up to the most current block,
the provided Flowable is invoked.
To automatically subscribe to new blocks, use
replayPastAndFutureBlocksFlowable(DefaultBlockParameter, boolean)
.
startBlock
- the block number we wish to request fromfullTransactionObjects
- if we require full Transaction
objects to be provided
in the EthBlock
responsesonCompleteFlowable
- a subsequent Flowable that we wish to run once we are caught
up with the latest blockFlowable
instance to emit all requested blocksio.reactivex.Flowable<EthBlock> replayPastBlocksFlowable(DefaultBlockParameter startBlock, boolean fullTransactionObjects)
Flowable
instance that emits all blocks from the requested block number
to the most current. Once it has emitted the most current block, onComplete is called.startBlock
- the block number we wish to request fromfullTransactionObjects
- if we require full Transaction
objects to be provided
in the EthBlock
responsesFlowable
instance to emit all requested blocksio.reactivex.Flowable<Transaction> replayPastTransactionsFlowable(DefaultBlockParameter startBlock, DefaultBlockParameter endBlock)
Flowable
instance that emits all transactions from the blockchain
contained within the requested range.startBlock
- block number to commence withendBlock
- block number to finish withFlowable
instance to emit these transactions in the order they
appear in the blocksio.reactivex.Flowable<Transaction> replayPastTransactionsFlowable(DefaultBlockParameter startBlock)
Flowable
instance that emits all transactions from the requested block
number to the most current. Once it has emitted the most current block's transactions,
onComplete is called.startBlock
- the block number we wish to request fromFlowable
instance to emit all requested transactionsio.reactivex.Flowable<EthBlock> replayPastAndFutureBlocksFlowable(DefaultBlockParameter startBlock, boolean fullTransactionObjects)
Flowable
instance that emits all blocks from the requested block number
to the most current. Once it has emitted the most current block, it starts emitting new
blocks as they are created.startBlock
- the block number we wish to request fromfullTransactionObjects
- if we require full Transaction
objects to be provided
in the EthBlock
responsesFlowable
instance to emit all requested blocks and futureio.reactivex.Flowable<Transaction> replayPastAndFutureTransactionsFlowable(DefaultBlockParameter startBlock)
replayPastAndFutureBlocksFlowable(DefaultBlockParameter, boolean)
,
except that all transactions contained within the blocks are emitted.startBlock
- the block number we wish to request fromFlowable
instance to emit all requested transactions and futureio.reactivex.Flowable<NewHeadsNotification> newHeadsNotifications()
Flowable
instance that emits a notification when a new header is appended
to a chain, including chain reorganizations.Flowable
instance that emits a notification for every new headerio.reactivex.Flowable<LogNotification> logsNotifications(java.util.List<java.lang.String> addresses, java.util.List<java.lang.String> topics)
Flowable
instance that emits notifications for logs included in new
imported blocks.addresses
- only return logs from this list of address. Return logs from all addresses
if the list is emptytopics
- only return logs that match specified topics. Returns logs for all topics if
the list is emptyFlowable
instance that emits logs included in new blocks