Class FundedLightningSend
- Namespace
- NArk.ArkadeIntents.Lightning
- Assembly
- NArk.ArkadeIntents.dll
The outcome of funding a Lightning swap: everything needed to watch and account for it.
public sealed record FundedLightningSend : IEquatable<FundedLightningSend>
- Inheritance
-
FundedLightningSend
- Implements
- Inherited Members
Constructors
FundedLightningSend(string, RfqQuote<LightningSendQuoteProfile>, string, string, string, string, long, string?, bool)
The outcome of funding a Lightning swap: everything needed to watch and account for it.
public FundedLightningSend(string RfqId, RfqQuote<LightningSendQuoteProfile> Quote, string LockupAddress, string LockupPkScript, string RefundAddress, string PaymentHash, long FundedSats, string? FundingTxid, bool FundingConfirmed = true)
Parameters
RfqIdstringThe negotiation's correlation id.
QuoteRfqQuote<LightningSendQuoteProfile>The solver's quote, as accepted.
LockupAddressstringThe swap contract's address, derived locally and verified.
LockupPkScriptstringThe contract's scriptPubKey (hex) — what to watch on-chain.
RefundAddressstringWhere the covenant refund pays if the swap fails.
PaymentHashstringThe invoice's payment hash (hex).
FundedSatslongWhat was locked up.
FundingTxidstringThe Arkade transaction that funded the lockup, or
nullwhenFundingConfirmedis false.FundingConfirmedboolFalse when the funding spend failed in a way that does not say whether it reached the Arkade server. Treat the payment as in flight, never as failed: retrying may pay the invoice twice. The swap stays Funding until the advance pass settles it.
Properties
FundedSats
What was locked up.
public long FundedSats { get; init; }
Property Value
FundingConfirmed
False when the funding spend failed in a way that does not say whether it reached the Arkade server. Treat the payment as in flight, never as failed: retrying may pay the invoice twice. The swap stays Funding until the advance pass settles it.
public bool FundingConfirmed { get; init; }
Property Value
FundingTxid
The Arkade transaction that funded the lockup, or null when FundingConfirmed
is false.
public string? FundingTxid { get; init; }
Property Value
LockupAddress
The swap contract's address, derived locally and verified.
public string LockupAddress { get; init; }
Property Value
LockupPkScript
The contract's scriptPubKey (hex) — what to watch on-chain.
public string LockupPkScript { get; init; }
Property Value
PaymentHash
The invoice's payment hash (hex).
public string PaymentHash { get; init; }
Property Value
Quote
The solver's quote, as accepted.
public RfqQuote<LightningSendQuoteProfile> Quote { get; init; }
Property Value
RefundAddress
Where the covenant refund pays if the swap fails.
public string RefundAddress { get; init; }
Property Value
RfqId
The negotiation's correlation id.
public string RfqId { get; init; }