Table of Contents

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

RfqId string

The negotiation's correlation id.

Quote RfqQuote<LightningReceiveQuoteProfile>

The solver's quote, as accepted.

Invoice string

The hold invoice to hand to the payer.

Preimage byte[]

The secret that settles both sides. Hold on to it: the swap cannot complete without it, and nobody else has it in the clear.

PaymentHash string

sha256(Preimage), hex.

Contract VHTLCv2Contract

The funding contract, derived locally.

LockupAddress string

That contract's address — where the solver must pay.

PayoutAddress string

The client's own address the claim pays out to.

Properties

Contract

The funding contract, derived locally.

public VHTLCv2Contract Contract { get; init; }

Property Value

VHTLCv2Contract

Invoice

The hold invoice to hand to the payer.

public string Invoice { get; init; }

Property Value

string

LockupAddress

That contract's address — where the solver must pay.

public string LockupAddress { get; init; }

Property Value

string

PaymentHash

sha256(Preimage), hex.

public string PaymentHash { get; init; }

Property Value

string

PayoutAddress

The client's own address the claim pays out to.

public string PayoutAddress { get; init; }

Property Value

string

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

RfqQuote<LightningReceiveQuoteProfile>

RfqId

The negotiation's correlation id.

public string RfqId { get; init; }

Property Value

string