Table of Contents

Class CreateSwapRequest

Namespace
NArk.ArkadeIntents.Assets
Assembly
NArk.ArkadeIntents.dll

A request to create an Arkade swap. For BtcToAsset the wallet deposits DepositAmount sats and wants WantAmount units of Asset; for AssetToBtc it deposits DepositAmount units of Asset and wants WantAmount sats.

public sealed record CreateSwapRequest : IEquatable<CreateSwapRequest>
Inheritance
CreateSwapRequest
Implements
Inherited Members

Constructors

CreateSwapRequest(string, ArkadeSwapIntentType, long, long, AssetId)

A request to create an Arkade swap. For BtcToAsset the wallet deposits DepositAmount sats and wants WantAmount units of Asset; for AssetToBtc it deposits DepositAmount units of Asset and wants WantAmount sats.

public CreateSwapRequest(string WalletId, ArkadeSwapIntentType Type, long DepositAmount, long WantAmount, AssetId Asset)

Parameters

WalletId string
Type ArkadeSwapIntentType
DepositAmount long
WantAmount long
Asset AssetId

Properties

Asset

public AssetId Asset { get; init; }

Property Value

AssetId

DepositAmount

public long DepositAmount { get; init; }

Property Value

long

Type

public ArkadeSwapIntentType Type { get; init; }

Property Value

ArkadeSwapIntentType

WalletId

public string WalletId { get; init; }

Property Value

string

WantAmount

public long WantAmount { get; init; }

Property Value

long