Table of Contents

Class Token

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

Properties

AdditionalProperties

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

Property Value

IDictionary<string, object>

Address

The token address to purchase (use 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE for native token)

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

Property Value

string

Amount

The amount of the token to purchase in wei.

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

Property Value

string

ChainId

The blockchain network where the token is located

[JsonProperty("chainId", Required = Required.Always)]
[Range(1, 2147483647)]
public int ChainId { get; set; }

Property Value

int