pub struct SendEndUserSolTransactionSimulationInput {
pub address: SendEndUserSolTransactionSimulationInputAddress,
pub network: SendEndUserSolTransactionSimulationInputNetwork,
pub operation: SendEndUserSolTransactionSimulationInputOperation,
pub transaction: String,
pub use_cdp_sponsor: Option<bool>,
pub user_id: SendEndUserSolTransactionSimulationInputUserId,
}Expand description
SendEndUserSolTransactionSimulationInput
JSON schema
{
"title": "SendEndUserSolTransactionSimulationInput",
"examples": [
{
"address": "HpabPRRCFbBKSuJr5PdkVvQc85FyxyTWkFM2obBRSvHT",
"network": "solana-devnet",
"operation": "sendEndUserSolTransaction",
"transaction": "AQABAgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAQECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8CBgMBAQAAAAIBAwQAAAAABgIAAAAAAAYDBQEBAAAGBAgUAAAAA6AMAAAAAAAAGBgUBAQEBBgcEAQAAAAYICgMBAQIDBgkCBgAAAAYKAwABAQEGCwMGAQEBBgwDAAABAQAAAAA=",
"userId": "e051beeb-7163-4527-a5b6-35e301529ff2"
}
],
"type": "object",
"required": [
"address",
"network",
"operation",
"transaction",
"userId"
],
"properties": {
"address": {
"description": "The base58 encoded address of the Solana account belonging to the end user.",
"type": "string",
"pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
},
"network": {
"description": "The Solana network to send the transaction to.",
"examples": [
"solana-devnet"
],
"type": "string",
"enum": [
"solana",
"solana-devnet"
]
},
"operation": {
"description": "Rule operation to simulate.",
"type": "string",
"enum": [
"sendEndUserSolTransaction"
],
"x-go-type": "string"
},
"transaction": {
"description": "The base64 encoded transaction to evaluate. This transaction can contain multiple instructions for native Solana batching.",
"type": "string"
},
"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: SendEndUserSolTransactionSimulationInputAddressThe base58 encoded address of the Solana account belonging to the end user.
network: SendEndUserSolTransactionSimulationInputNetworkThe Solana network to send the transaction to.
operation: SendEndUserSolTransactionSimulationInputOperationRule operation to simulate.
transaction: StringThe base64 encoded transaction to evaluate. This transaction can contain multiple instructions for native Solana batching.
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: SendEndUserSolTransactionSimulationInputUserIdThe ID of the end user.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SendEndUserSolTransactionSimulationInput
impl<'de> Deserialize<'de> for SendEndUserSolTransactionSimulationInput
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<&SendEndUserSolTransactionSimulationInput> for SendEndUserSolTransactionSimulationInput
impl From<&SendEndUserSolTransactionSimulationInput> for SendEndUserSolTransactionSimulationInput
Source§fn from(value: &SendEndUserSolTransactionSimulationInput) -> Self
fn from(value: &SendEndUserSolTransactionSimulationInput) -> Self
Converts to this type from the input type.
Source§impl From<SendEndUserSolTransactionSimulationInput> for SimulatePoliciesRequest
impl From<SendEndUserSolTransactionSimulationInput> for SimulatePoliciesRequest
Source§fn from(value: SendEndUserSolTransactionSimulationInput) -> Self
fn from(value: SendEndUserSolTransactionSimulationInput) -> Self
Converts to this type from the input type.
Source§impl From<SendEndUserSolTransactionSimulationInput> for SendEndUserSolTransactionSimulationInput
impl From<SendEndUserSolTransactionSimulationInput> for SendEndUserSolTransactionSimulationInput
Source§fn from(value: SendEndUserSolTransactionSimulationInput) -> Self
fn from(value: SendEndUserSolTransactionSimulationInput) -> Self
Converts to this type from the input type.
Source§impl TryFrom<SendEndUserSolTransactionSimulationInput> for SendEndUserSolTransactionSimulationInput
impl TryFrom<SendEndUserSolTransactionSimulationInput> for SendEndUserSolTransactionSimulationInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: SendEndUserSolTransactionSimulationInput,
) -> Result<Self, ConversionError>
fn try_from( value: SendEndUserSolTransactionSimulationInput, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SendEndUserSolTransactionSimulationInput
impl RefUnwindSafe for SendEndUserSolTransactionSimulationInput
impl Send for SendEndUserSolTransactionSimulationInput
impl Sync for SendEndUserSolTransactionSimulationInput
impl Unpin for SendEndUserSolTransactionSimulationInput
impl UnsafeUnpin for SendEndUserSolTransactionSimulationInput
impl UnwindSafe for SendEndUserSolTransactionSimulationInput
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