Class Body16
Request schema for creating a new ERC20 token
public class Body16
- Inheritance
-
Body16
- Inherited Members
Properties
AdditionalProperties
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties { get; set; }
Property Value
ChainId
The blockchain network identifier. Common values include: 1 (Ethereum), 8453 (Base), 137 (Polygon), 56 (BSC), 43114 (Avalanche), 42161 (Arbitrum), 10 (Optimism).
[JsonProperty("chainId", Required = Required.Always)]
[Range(1, 2147483647)]
public int ChainId { get; set; }
Property Value
Description
Token description
[JsonProperty("description", Required = Required.Always)]
[Required]
[StringLength(500, MinimumLength = 1)]
public string Description { get; set; }
Property Value
From
Wallet address or ENS that will deploy the token.
[JsonProperty("from", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
public string From { get; set; }
Property Value
ImageUrl
Token image URL
[JsonProperty("imageUrl", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
public Uri ImageUrl { get; set; }
Property Value
MaxSupply
The maximum token supply.
[JsonProperty("maxSupply", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public double MaxSupply { get; set; }
Property Value
Name
Token name
[JsonProperty("name", Required = Required.Always)]
[Required]
[StringLength(100, MinimumLength = 1)]
public string Name { get; set; }
Property Value
Owner
The token owner address, if different from from
.
[JsonProperty("owner", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public string Owner { get; set; }
Property Value
Sale
Setup this token for a sale.
[JsonProperty("sale", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public Sale Sale { get; set; }
Property Value
Salt
A salt to deterministically generate the token address.
[JsonProperty("salt", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public string Salt { get; set; }
Property Value
Symbol
Token symbol
[JsonProperty("symbol", Required = Required.Always)]
[Required]
[StringLength(20, MinimumLength = 1)]
public string Symbol { get; set; }