Class SettlementPlan
- Namespace
- NArk.Abstractions.Settlement
- Assembly
- NArk.Abstractions.dll
A policy's decision: settle Amount of SourceAsset
to Destination.
public record SettlementPlan : IEquatable<SettlementPlan>
- Inheritance
-
SettlementPlan
- Implements
- Inherited Members
Constructors
SettlementPlan(SettlementDestination, long, string, IReadOnlyCollection<ArkCoin>?, string?)
A policy's decision: settle Amount of SourceAsset
to Destination.
public SettlementPlan(SettlementDestination Destination, long Amount, string SourceAsset = "BTC", IReadOnlyCollection<ArkCoin>? Coins = null, string? Reference = null)
Parameters
DestinationSettlementDestinationWhere the funds should go.
AmountlongHow much to move, in
SourceAsset's atomic units — satoshis for BTC.SourceAssetstringWhat leaves the wallet: Btc (the default) or the id of an Arkade-issued asset. This is the source side only; a rail that converts may deliver a different asset at
Destination.CoinsIReadOnlyCollection<ArkCoin>The exact coins to spend, when the policy picked them — the settlement counterpart of the coins an
ISweepPolicyyields. null leaves coin selection to the settlement rail.ReferencestringOptional correlation id carried into Reference.
Properties
Amount
How much to move, in SourceAsset's atomic units — satoshis for BTC.
public long Amount { get; init; }
Property Value
Coins
The exact coins to spend, when the policy picked them — the settlement counterpart of
the coins an ISweepPolicy yields. null leaves coin selection
to the settlement rail.
public IReadOnlyCollection<ArkCoin>? Coins { get; init; }
Property Value
Destination
Where the funds should go.
public SettlementDestination Destination { get; init; }
Property Value
Reference
Optional correlation id carried into Reference.
public string? Reference { get; init; }
Property Value
SourceAsset
What leaves the wallet: Btc (the default) or the id of an
Arkade-issued asset. This is the source side only; a rail that converts may deliver a
different asset at Destination.
public string SourceAsset { get; init; }