daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Oct 15th, 2018 105 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. Observable<Transaction> myCatchUpToLatestAndSubscribeToNewTransactionsObservable(
  2.   DefaultBlockParameter startBlock) {
  3.  
  4.  
  5.   return web3j.catchUpToLatestAndSubscribeToNewBlocksObservable(startBlock, false)
  6.     .flatMap(currentBlock -> {
  7.       BigInteger confirmedBlock = currentBlock.getBlock().getNumber().subtract(confirmationBlock);
  8.       return web3j.ethGetBlockByNumber(DefaultBlockParameter.valueOf(confirmedBlock), true).observable();
  9.     }).flatMapIterable(MyWeb3j::toTransactions);
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top