Class Body22
Request payload for transferring SOL or SPL tokens on Solana.
public class Body22
- Inheritance
-
Body22
- Inherited Members
Properties
AdditionalProperties
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties { get; set; }
Property Value
Amount
Amount to transfer expressed in base units (lamports for SOL or token decimals).
[JsonProperty("amount", Required = Required.Always)]
[Required]
public string Amount { get; set; }
Property Value
ChainId
Solana network identifier. Use solana:devnet for testing and solana:mainnet for production.
[JsonProperty("chainId", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
[JsonConverter(typeof(StringEnumConverter))]
public Body22ChainId ChainId { get; set; }
Property Value
From
Solana wallet address that will sign and submit the transfer.
[JsonProperty("from", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
[RegularExpression("^[1-9A-HJ-NP-Za-km-z]{32,44}$")]
public string From { get; set; }
Property Value
To
Destination Solana address.
[JsonProperty("to", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
[RegularExpression("^[1-9A-HJ-NP-Za-km-z]{32,44}$")]
public string To { get; set; }
Property Value
TokenAddress
Optional SPL token mint address. When omitted a native SOL transfer is performed.
[JsonProperty("tokenAddress", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
[RegularExpression("^[1-9A-HJ-NP-Za-km-z]{32,44}$")]
public string TokenAddress { get; set; }