Package org.bitcoindevkit
Interface CbfClientInterface
-
- All Implemented Interfaces:
public interface CbfClientInterfaceA `CbfClient` handles wallet updates from a `CbfNode`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classCbfClientInterface.Companion
-
Method Summary
Modifier and Type Method Description abstract UnitaddRevealedScripts(Wallet wallet)Add scripts for the node to watch for as they are revealed. abstract Unitbroadcast(Transaction transaction)Broadcast a transaction to the network, erroring if the node has stopped running. abstract BooleanisRunning()Check if the node is still running in the background. abstract FeeRateminBroadcastFeerate()The minimum fee rate required to broadcast a transcation to all connected peers. abstract LognextLog()Return the next available log message from a node. abstract WarningnextWarning()Return the next available warning message from a node. abstract Unitshutdown()Stop the `CbfNode`. abstract Updateupdate()Return an `Update`. -
-
Method Detail
-
addRevealedScripts
abstract 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
abstract Unit broadcast(Transaction transaction)
Broadcast a transaction to the network, erroring if the node has stopped running.
-
minBroadcastFeerate
abstract FeeRate minBroadcastFeerate()
The minimum fee rate required to broadcast a transcation to all connected peers.
-
nextLog
abstract Log nextLog()
Return the next available log message from a node. If none is returned, the node has stopped.
-
nextWarning
abstract Warning nextWarning()
Return the next available warning message from a node. If none is returned, the node has stopped.
-
-
-
-