Table of Contents

Class Body27

Namespace
Thirdweb.Api
Assembly
Thirdweb.dll

Request payload for executing a token swap on Solana. The endpoint handles swap routing, transaction signing, execution, and confirmation polling.

public class Body27
Inheritance
Body27
Inherited Members

Properties

AdditionalProperties

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

Property Value

IDictionary<string, object>

Address

Solana wallet address that will execute the swap.

[JsonProperty("address", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
[RegularExpression("^[1-9A-HJ-NP-Za-km-z]{32,44}$")]
public string Address { get; set; }

Property Value

string

Amount

Amount of input token to swap, expressed in the smallest unit (e.g., lamports for SOL).

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

Property Value

string

ChainId

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

Property Value

string

TokenIn

Input token mint address (the token being sold).

[JsonProperty("tokenIn", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
[RegularExpression("^[1-9A-HJ-NP-Za-km-z]{32,44}$")]
public string TokenIn { get; set; }

Property Value

string

TokenOut

Output token mint address (the token being purchased).

[JsonProperty("tokenOut", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
[RegularExpression("^[1-9A-HJ-NP-Za-km-z]{32,44}$")]
public string TokenOut { get; set; }

Property Value

string