Table of Contents

Class TokenIn

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

Properties

AdditionalProperties

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

Property Value

IDictionary<string, object>

Address

The input token address to swap (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 input token to swap in wei.

[JsonProperty("amount", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
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

MaxAmount

The maximum amount of the input token to swap in wei.

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

Property Value

string