Package org.bitcoindevkit
Interface ClientInterface
-
- All Implemented Interfaces:
public interface ClientInterface
A `Client` handles wallet updates from a `LightNode`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
ClientInterface.Companion
-
Method Summary
Modifier and Type Method Description abstract Unit
addRevealedScripts(Wallet wallet)
Add scripts for the node to watch for as they are revealed. abstract Unit
broadcast(Transaction transaction)
Broadcast a transaction to the network, erroring if the node has stopped running. abstract Boolean
isRunning()
Check if the node is still running in the background. abstract FeeRate
minBroadcastFeerate()
The minimum fee rate required to broadcast a transcation to all connected peers. abstract Log
nextLog()
Return the next available log message from a node. abstract Warning
nextWarning()
Return the next available warning message from a node. abstract Unit
shutdown()
Stop the `LightNode`. abstract Update
update()
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.
-
-