Skip to content

Commit 89ee011

Browse files
committed
bindings for passing preimage for spontaneous payment
1 parent e02ffed commit 89ee011

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bindings/ldk_node.udl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ interface SpontaneousPayment {
213213
PaymentId send_with_custom_tlvs(u64 amount_msat, PublicKey node_id, SendingParameters? sending_parameters, sequence<CustomTlvRecord> custom_tlvs);
214214
[Throws=NodeError]
215215
void send_probes(u64 amount_msat, PublicKey node_id);
216+
[Throws=NodeError]
217+
PaymentId send_with_preimage(u64 amount_msat, PublicKey node_id, SendingParameters? sending_parameters, PaymentPreimage preimage);
218+
[Throws=NodeError]
219+
PaymentId send_with_preimage_and_custom_tlvs(u64 amount_msat, PublicKey node_id, SendingParameters? sending_parameters, sequence<CustomTlvRecord> custom_tlvs, PaymentPreimage preimage);
216220
};
217221

218222
interface OnchainPayment {

0 commit comments

Comments
 (0)