-
- All Implemented Interfaces:
-
java.lang.AutoCloseable,org.lightningdevkit.ldknode.Disposable,org.lightningdevkit.ldknode.NodeInterface
public class Node implements Disposable, AutoCloseable, NodeInterface
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classNode.Companion
-
Method Summary
-
-
Constructor Detail
-
Node
Node(Pointer pointer)
-
Node
Node(NoPointer noPointer)
This constructor can be used to instantiate a fake object.
-
-
Method Detail
-
uniffiClonePointer
final Pointer uniffiClonePointer()
-
bolt11Payment
Bolt11Payment bolt11Payment()
-
bolt12Payment
Bolt12Payment bolt12Payment()
-
closeChannel
Unit closeChannel(String userChannelId, String counterpartyNodeId)
-
disconnect
Unit disconnect(String nodeId)
-
eventHandled
Unit eventHandled()
-
forceCloseChannel
Unit forceCloseChannel(String userChannelId, String counterpartyNodeId, String reason)
-
listBalances
BalanceDetails listBalances()
-
listChannels
List<ChannelDetails> listChannels()
-
listPayments
List<PaymentDetails> listPayments()
-
listPeers
List<PeerDetails> listPeers()
-
listeningAddresses
List<String> listeningAddresses()
-
networkGraph
NetworkGraph networkGraph()
-
nextEventAsync
Event nextEventAsync()
-
onchainPayment
OnchainPayment onchainPayment()
-
openAnnouncedChannel
String openAnnouncedChannel(String nodeId, String address, ULong channelAmountSats, ULong pushToCounterpartyMsat, ChannelConfig channelConfig)
-
openChannel
String openChannel(String nodeId, String address, ULong channelAmountSats, ULong pushToCounterpartyMsat, ChannelConfig channelConfig)
-
payment
PaymentDetails payment(String paymentId)
-
removePayment
Unit removePayment(String paymentId)
-
signMessage
String signMessage(List<UByte> msg)
-
spontaneousPayment
SpontaneousPayment spontaneousPayment()
-
status
NodeStatus status()
-
syncWallets
Unit syncWallets()
-
unifiedQrPayment
UnifiedQrPayment unifiedQrPayment()
-
updateChannelConfig
Unit updateChannelConfig(String userChannelId, String counterpartyNodeId, ChannelConfig channelConfig)
-
waitNextEvent
Event waitNextEvent()
-
-
-
-