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
WalletIdstringTypeArkadeSwapIntentTypeDepositAmountlongWantAmountlongAssetAssetId
Properties
Asset
public AssetId Asset { get; init; }
Property Value
DepositAmount
public long DepositAmount { get; init; }
Property Value
Type
public ArkadeSwapIntentType Type { get; init; }
Property Value
WalletId
public string WalletId { get; init; }
Property Value
WantAmount
public long WantAmount { get; init; }