Table of Contents

Class Body22

Namespace
Thirdweb.Api
Assembly
Thirdweb.dll

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

IDictionary<string, object>

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

string

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

Body22ChainId

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

string

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

string

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; }

Property Value

string