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