Table of Contents

Class Body16

Namespace
Thirdweb.Api
Assembly
Thirdweb.dll

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

IDictionary<string, object>

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

int

Description

Token description

[JsonProperty("description", Required = Required.Always)]
[Required]
[StringLength(500, MinimumLength = 1)]
public string Description { get; set; }

Property Value

string

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

string

ImageUrl

Token image URL

[JsonProperty("imageUrl", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
public Uri ImageUrl { get; set; }

Property Value

Uri

MaxSupply

The maximum token supply.

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

Property Value

double

Name

Token name

[JsonProperty("name", Required = Required.Always)]
[Required]
[StringLength(100, MinimumLength = 1)]
public string Name { get; set; }

Property Value

string

Owner

The token owner address, if different from from.

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

Property Value

string

Sale

Setup this token for a sale.

[JsonProperty("sale", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public Sale Sale { get; set; }

Property Value

Sale

Salt

A salt to deterministically generate the token address.

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

Property Value

string

Symbol

Token symbol

[JsonProperty("symbol", Required = Required.Always)]
[Required]
[StringLength(20, MinimumLength = 1)]
public string Symbol { get; set; }

Property Value

string