You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/fiber-lib/src/rpc/README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -521,14 +521,16 @@ Generates a new invoice.
521
521
*`amount` - <em>`u128`</em>, The amount of the invoice.
522
522
*`description` - <em>`Option<String>`</em>, The description of the invoice.
523
523
*`currency` - <em>[Currency](#type-currency)</em>, The currency of the invoice.
524
-
*`payment_preimage` - <em>[Hash256](#type-hash256)</em>, The payment preimage of the invoice.
524
+
*`payment_preimage` - <em>Option<[Hash256](#type-hash256)></em>, The preimage to settle an incoming TLC payable to this invoice. If preimage is set, hash must be absent. If both preimage and hash are absent, a random preimage is generated.
525
+
*`payment_hash` - <em>Option<[Hash256](#type-hash256)></em>, The hash of the preimage. If hash is set, preimage must be absent. This condition indicates a 'hold invoice' for which the tlc must be accepted and held until the preimage becomes known.
525
526
*`expiry` - <em>`Option<u64>`</em>, The expiry time of the invoice, in seconds.
526
527
*`fallback_address` - <em>`Option<String>`</em>, The fallback address of the invoice.
527
528
*`final_expiry_delta` - <em>`Option<u64>`</em>, The final HTLC timeout of the invoice, in milliseconds.
528
529
Minimal value is 16 hours, and maximal value is 14 days.
529
530
*`udt_type_script` - <em>`Option<Script>`</em>, The UDT type script of the invoice.
530
531
*`hash_algorithm` - <em>Option<[HashAlgorithm](#type-hashalgorithm)></em>, The hash algorithm of the invoice.
531
532
*`allow_mpp` - <em>`Option<bool>`</em>, Whether allow payment to use MPP
533
+
*`atomic_mpp` - <em>`Option<bool>`</em>, Whether use atomic mpp, if use atomic mpp there will be no preimage generated.
/// The preimage to settle an incoming TLC payable to this invoice. If preimage is set, hash must be absent. If both preimage and hash are absent, a random preimage is generated.
145
+
pubpayment_preimage:Option<Hash256>,
146
+
/// The hash of the preimage. If hash is set, preimage must be absent. This condition indicates a 'hold invoice' for which the tlc must be accepted and held until the preimage becomes known.
0 commit comments