Table of Contents

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

RfqId string

The negotiation's correlation id.

Quote RfqQuote<LightningSendQuoteProfile>

The solver's quote, as accepted.

LockupAddress string

The swap contract's address, derived locally and verified.

LockupPkScript string

The contract's scriptPubKey (hex) — what to watch on-chain.

RefundAddress string

Where the covenant refund pays if the swap fails.

PaymentHash string

The invoice's payment hash (hex).

FundedSats long

What was locked up.

FundingTxid string

The Arkade transaction that funded the lockup, or null when FundingConfirmed is false.

FundingConfirmed bool

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.

Properties

FundedSats

What was locked up.

public long FundedSats { get; init; }

Property Value

long

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

bool

FundingTxid

The Arkade transaction that funded the lockup, or null when FundingConfirmed is false.

public string? FundingTxid { get; init; }

Property Value

string

LockupAddress

The swap contract's address, derived locally and verified.

public string LockupAddress { get; init; }

Property Value

string

LockupPkScript

The contract's scriptPubKey (hex) — what to watch on-chain.

public string LockupPkScript { get; init; }

Property Value

string

PaymentHash

The invoice's payment hash (hex).

public string PaymentHash { get; init; }

Property Value

string

Quote

The solver's quote, as accepted.

public RfqQuote<LightningSendQuoteProfile> Quote { get; init; }

Property Value

RfqQuote<LightningSendQuoteProfile>

RefundAddress

Where the covenant refund pays if the swap fails.

public string RefundAddress { get; init; }

Property Value

string

RfqId

The negotiation's correlation id.

public string RfqId { get; init; }

Property Value

string