-
- All Implemented Interfaces:
-
java.lang.AutoCloseable,org.lightningdevkit.ldknode.Disposable,org.lightningdevkit.ldknode.LdkNodeInterface
public final class LdkNode extends FFIObject implements LdkNodeInterface
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classLdkNode.Companion
-
Constructor Summary
Constructors Constructor Description LdkNode(Pointer pointer)
-
Method Summary
-
-
Method Detail
-
closeChannel
Unit closeChannel(String channelId, String counterpartyNodeId)
-
connectOpenChannel
Unit connectOpenChannel(String nodeId, String address, ULong channelAmountSats, ULong pushToCounterpartyMsat, ChannelConfig channelConfig, Boolean announceChannel)
-
disconnect
Unit disconnect(String nodeId)
-
eventHandled
Unit eventHandled()
-
listChannels
List<ChannelDetails> listChannels()
-
listPayments
List<PaymentDetails> listPayments()
-
listPeers
List<PeerDetails> listPeers()
-
listeningAddresses
List<String> listeningAddresses()
-
newOnchainAddress
String newOnchainAddress()
-
payment
PaymentDetails payment(String paymentHash)
-
receivePayment
String receivePayment(ULong amountMsat, String description, UInt expirySecs)
-
receiveVariableAmountPayment
String receiveVariableAmountPayment(String description, UInt expirySecs)
-
removePayment
Unit removePayment(String paymentHash)
-
sendAllToOnchainAddress
String sendAllToOnchainAddress(String address)
-
sendPayment
String sendPayment(String invoice)
-
sendPaymentProbes
Unit sendPaymentProbes(String invoice)
-
sendPaymentProbesUsingAmount
Unit sendPaymentProbesUsingAmount(String invoice, ULong amountMsat)
-
sendPaymentUsingAmount
String sendPaymentUsingAmount(String invoice, ULong amountMsat)
-
sendSpontaneousPayment
String sendSpontaneousPayment(ULong amountMsat, String nodeId)
-
sendSpontaneousPaymentProbes
Unit sendSpontaneousPaymentProbes(ULong amountMsat, String nodeId)
-
sendToOnchainAddress
String sendToOnchainAddress(String address, ULong amountMsat)
-
signMessage
String signMessage(List<UByte> msg)
-
spendableOnchainBalanceSats
ULong spendableOnchainBalanceSats()
-
syncWallets
Unit syncWallets()
-
totalOnchainBalanceSats
ULong totalOnchainBalanceSats()
-
updateChannelConfig
Unit updateChannelConfig(String channelId, String counterpartyNodeId, ChannelConfig channelConfig)
-
waitNextEvent
Event waitNextEvent()
-
-
-
-