Package org.bitcoindevkit
Class CbfClient
-
- All Implemented Interfaces:
-
java.lang.AutoCloseable,org.bitcoindevkit.CbfClientInterface,org.bitcoindevkit.Disposable
public class CbfClient implements Disposable, AutoCloseable, CbfClientInterface
A `CbfClient` handles wallet updates from a `CbfNode`.
-
-
Method Summary
Modifier and Type Method Description Unitdestroy()Unitclose()final PointeruniffiClonePointer()UnitaddRevealedScripts(Wallet wallet)Add scripts for the node to watch for as they are revealed. Unitbroadcast(Transaction transaction)Broadcast a transaction to the network, erroring if the node has stopped running. BooleanisRunning()Check if the node is still running in the background. FeeRateminBroadcastFeerate()The minimum fee rate required to broadcast a transcation to all connected peers. LognextLog()Return the next available log message from a node. WarningnextWarning()Return the next available warning message from a node. Unitshutdown()Stop the `CbfNode`. Updateupdate()Return an `Update`. -
-
Method Detail
-
uniffiClonePointer
final Pointer uniffiClonePointer()
-
addRevealedScripts
Unit addRevealedScripts(Wallet wallet)
Add scripts for the node to watch for as they are revealed. Typically used after creating a transaction or revealing a receive address.
Note that only future blocks will be checked for these scripts, not past blocks.
-
broadcast
Unit broadcast(Transaction transaction)
Broadcast a transaction to the network, erroring if the node has stopped running.
-
minBroadcastFeerate
FeeRate minBroadcastFeerate()
The minimum fee rate required to broadcast a transcation to all connected peers.
-
nextLog
Log nextLog()
Return the next available log message from a node. If none is returned, the node has stopped.
-
nextWarning
Warning nextWarning()
Return the next available warning message from a node. If none is returned, the node has stopped.
-
-
-
-