Class Body27
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
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
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
ChainId
[JsonProperty("chainId", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
public string ChainId { get; set; }
Property Value
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
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; }