Class PendingLightningReceive
- Namespace
- NArk.ArkadeIntents.Lightning
- Assembly
- NArk.ArkadeIntents.dll
A negotiated receive swap, waiting for someone to pay its invoice.
public sealed record PendingLightningReceive : IEquatable<PendingLightningReceive>
- Inheritance
-
PendingLightningReceive
- Implements
- Inherited Members
Constructors
PendingLightningReceive(string, RfqQuote<LightningReceiveQuoteProfile>, string, byte[], string, VHTLCv2Contract, string, string)
A negotiated receive swap, waiting for someone to pay its invoice.
public PendingLightningReceive(string RfqId, RfqQuote<LightningReceiveQuoteProfile> Quote, string Invoice, byte[] Preimage, string PaymentHash, VHTLCv2Contract Contract, string LockupAddress, string PayoutAddress)
Parameters
RfqIdstringThe negotiation's correlation id.
QuoteRfqQuote<LightningReceiveQuoteProfile>The solver's quote, as accepted.
InvoicestringThe hold invoice to hand to the payer.
Preimagebyte[]The secret that settles both sides. Hold on to it: the swap cannot complete without it, and nobody else has it in the clear.
PaymentHashstringsha256(Preimage), hex.ContractVHTLCv2ContractThe funding contract, derived locally.
LockupAddressstringThat contract's address — where the solver must pay.
PayoutAddressstringThe client's own address the claim pays out to.
Properties
Contract
The funding contract, derived locally.
public VHTLCv2Contract Contract { get; init; }
Property Value
Invoice
The hold invoice to hand to the payer.
public string Invoice { get; init; }
Property Value
LockupAddress
That contract's address — where the solver must pay.
public string LockupAddress { get; init; }
Property Value
PaymentHash
sha256(Preimage), hex.
public string PaymentHash { get; init; }
Property Value
PayoutAddress
The client's own address the claim pays out to.
public string PayoutAddress { get; init; }
Property Value
Preimage
The secret that settles both sides. Hold on to it: the swap cannot complete without it, and nobody else has it in the clear.
public byte[] Preimage { get; init; }
Property Value
- byte[]
Quote
The solver's quote, as accepted.
public RfqQuote<LightningReceiveQuoteProfile> Quote { get; init; }
Property Value
RfqId
The negotiation's correlation id.
public string RfqId { get; init; }