Table of Contents

Class Body17

Namespace
Thirdweb.Api
Assembly
Thirdweb.dll

Request to swap tokens using the optimal route available. You can specify a tokenIn amount (if exact='input') or tokenOut amount (if exact='output'), but not both. The corresponding output or input amount will be returned as the quote.

public class Body17
Inheritance
Body17
Inherited Members

Properties

AdditionalProperties

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

Property Value

IDictionary<string, object>

Exact

Whether to swap the exact input or output amount

[JsonProperty("exact", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
[JsonConverter(typeof(StringEnumConverter))]
public Body17Exact Exact { get; set; }

Property Value

Body17Exact

From

The wallet address or ENS name that will execute the swap.

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

Property Value

string

SlippageToleranceBps

The slippage tolerance in basis points. Will be automatically calculated by default.

[JsonProperty("slippageToleranceBps", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public double? SlippageToleranceBps { get; set; }

Property Value

double?

TokenIn

[JsonProperty("tokenIn", Required = Required.Always)]
[Required]
public TokenIn TokenIn { get; set; }

Property Value

TokenIn

TokenOut

[JsonProperty("tokenOut", Required = Required.Always)]
[Required]
public TokenOut TokenOut { get; set; }

Property Value

TokenOut