Table of Contents

Class Sale

Namespace
Thirdweb.Api
Assembly
Thirdweb.dll
public class Sale
Inheritance
Sale
Inherited Members

Properties

AdditionalProperties

[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties { get; set; }

Property Value

IDictionary<string, object>

Amount

The number of tokens to allocate to the sale.

[JsonProperty("amount", Required = Required.Always)]
public double Amount { get; set; }

Property Value

double

Currency

The currency to price this token sale in. Defaults to the native token.

[JsonProperty("currency", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public string Currency { get; set; }

Property Value

string

DeveloperFeeBps

The bps fee on the token pool.

[JsonProperty("developerFeeBps", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public double DeveloperFeeBps { get; set; }

Property Value

double

DeveloperFeeRecipient

The address to send the developer fee to. Defaults to the token owner.

[JsonProperty("developerFeeRecipient", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public string DeveloperFeeRecipient { get; set; }

Property Value

string

StartingPrice

The initial token price in wei. This price is in the currency specified by currency (or the native token if not specified).

[JsonProperty("startingPrice", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
public string StartingPrice { get; set; }

Property Value

string

Type

[JsonProperty("type", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
[JsonConverter(typeof(StringEnumConverter))]
public SaleType Type { get; set; }

Property Value

SaleType