pub struct SendEndUserSolAssetSimulationInput {
pub address: BlockchainAddress,
pub amount: SendEndUserSolAssetSimulationInputAmount,
pub asset: Asset,
pub create_recipient_ata: Option<bool>,
pub network: SendEndUserSolAssetSimulationInputNetwork,
pub operation: SendEndUserSolAssetSimulationInputOperation,
pub to: BlockchainAddress,
pub use_cdp_sponsor: Option<bool>,
pub user_id: SendEndUserSolAssetSimulationInputUserId,
}Expand description
SendEndUserSolAssetSimulationInput
JSON schema
{
"title": "SendEndUserSolAssetSimulationInput",
"examples": [
{
"address": "HpabPRRCFbBKSuJr5PdkVvQc85FyxyTWkFM2obBRSvHT",
"amount": "1.50",
"asset": "usdc",
"network": "solana-devnet",
"operation": "sendEndUserSolAsset",
"to": "ExXhNkgYf6efh7YyqDRVxPZuzafobao1A74drUdp8trd",
"userId": "e051beeb-7163-4527-a5b6-35e301529ff2"
}
],
"type": "object",
"required": [
"address",
"amount",
"asset",
"network",
"operation",
"to",
"userId"
],
"properties": {
"address": {
"$ref": "#/components/schemas/BlockchainAddress"
},
"amount": {
"description": "The amount of USDC to send as a decimal string (e.g. \"1.5\" or \"25.50\").",
"type": "string",
"maxLength": 32,
"minLength": 1
},
"asset": {
"$ref": "#/components/schemas/Asset"
},
"createRecipientAta": {
"description": "Whether to automatically create an Associated Token Account (ATA) for the recipient if it doesn't exist. When true, the sender pays the rent-exempt minimum to create the recipient's USDC ATA. When false, the transaction will fail if the recipient doesn't have a USDC ATA.",
"type": "boolean"
},
"network": {
"description": "The Solana network to send USDC on.",
"examples": [
"solana-devnet"
],
"type": "string",
"enum": [
"solana",
"solana-devnet"
]
},
"operation": {
"description": "Rule operation to simulate.",
"type": "string",
"enum": [
"sendEndUserSolAsset"
],
"x-go-type": "string"
},
"to": {
"$ref": "#/components/schemas/BlockchainAddress"
},
"useCdpSponsor": {
"description": "Whether transaction fees should be sponsored by CDP. When true, CDP sponsors the transaction fees on behalf of the end user. When false, the end user is responsible for paying the transaction fees.",
"type": "boolean"
},
"userId": {
"description": "The ID of the end user.",
"type": "string",
"pattern": "^[a-zA-Z0-9-]{1,100}$"
}
},
"additionalProperties": false
}Fields§
§address: BlockchainAddress§amount: SendEndUserSolAssetSimulationInputAmountThe amount of USDC to send as a decimal string (e.g. “1.5” or “25.50”).
asset: Asset§create_recipient_ata: Option<bool>Whether to automatically create an Associated Token Account (ATA) for the recipient if it doesn’t exist. When true, the sender pays the rent-exempt minimum to create the recipient’s USDC ATA. When false, the transaction will fail if the recipient doesn’t have a USDC ATA.
network: SendEndUserSolAssetSimulationInputNetworkThe Solana network to send USDC on.
operation: SendEndUserSolAssetSimulationInputOperationRule operation to simulate.
to: BlockchainAddress§use_cdp_sponsor: Option<bool>Whether transaction fees should be sponsored by CDP. When true, CDP sponsors the transaction fees on behalf of the end user. When false, the end user is responsible for paying the transaction fees.
user_id: SendEndUserSolAssetSimulationInputUserIdThe ID of the end user.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SendEndUserSolAssetSimulationInput
impl<'de> Deserialize<'de> for SendEndUserSolAssetSimulationInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&SendEndUserSolAssetSimulationInput> for SendEndUserSolAssetSimulationInput
impl From<&SendEndUserSolAssetSimulationInput> for SendEndUserSolAssetSimulationInput
Source§fn from(value: &SendEndUserSolAssetSimulationInput) -> Self
fn from(value: &SendEndUserSolAssetSimulationInput) -> Self
Converts to this type from the input type.
Source§impl From<SendEndUserSolAssetSimulationInput> for SimulatePoliciesRequest
impl From<SendEndUserSolAssetSimulationInput> for SimulatePoliciesRequest
Source§fn from(value: SendEndUserSolAssetSimulationInput) -> Self
fn from(value: SendEndUserSolAssetSimulationInput) -> Self
Converts to this type from the input type.
Source§impl From<SendEndUserSolAssetSimulationInput> for SendEndUserSolAssetSimulationInput
impl From<SendEndUserSolAssetSimulationInput> for SendEndUserSolAssetSimulationInput
Source§fn from(value: SendEndUserSolAssetSimulationInput) -> Self
fn from(value: SendEndUserSolAssetSimulationInput) -> Self
Converts to this type from the input type.
Source§impl TryFrom<SendEndUserSolAssetSimulationInput> for SendEndUserSolAssetSimulationInput
impl TryFrom<SendEndUserSolAssetSimulationInput> for SendEndUserSolAssetSimulationInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: SendEndUserSolAssetSimulationInput,
) -> Result<Self, ConversionError>
fn try_from( value: SendEndUserSolAssetSimulationInput, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SendEndUserSolAssetSimulationInput
impl RefUnwindSafe for SendEndUserSolAssetSimulationInput
impl Send for SendEndUserSolAssetSimulationInput
impl Sync for SendEndUserSolAssetSimulationInput
impl Unpin for SendEndUserSolAssetSimulationInput
impl UnsafeUnpin for SendEndUserSolAssetSimulationInput
impl UnwindSafe for SendEndUserSolAssetSimulationInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more