private CompletableFuture < TransactionEvent > registerTxListener ( String txid , NOfEvents nOfEvents , boolean failFast ) { CompletableFuture < TransactionEvent > future = new CompletableFuture <> ( ) ; new TL ( txid , future , nOfEvents , failFast ) ; return future ; }
Register a transactionId that to get notification on when the event is seen in the block chain .