pub struct SendSolTransactionSimulationInput {
pub network: SendSolTransactionSimulationInputNetwork,
pub operation: SendSolTransactionSimulationInputOperation,
pub transaction: String,
pub use_cdp_sponsor: Option<bool>,
}Expand description
SendSolTransactionSimulationInput
JSON schema
{
"title": "SendSolTransactionSimulationInput",
"examples": [
{
"network": "solana-devnet",
"operation": "sendSolTransaction",
"transaction": "AQABAgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAQECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8CBgMBAQAAAAIBAwQAAAAABgIAAAAAAAYDBQEBAAAGBAgUAAAAA6AMAAAAAAAAGBgUBAQEBBgcEAQAAAAYICgMBAQIDBgkCBgAAAAYKAwABAQEGCwMGAQEBBgwDAAABAQAAAAA="
}
],
"type": "object",
"required": [
"network",
"operation",
"transaction"
],
"properties": {
"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": [
"sendSolTransaction"
],
"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 server wallet. When false, the server wallet is responsible for paying the transaction fees.",
"type": "boolean"
}
},
"additionalProperties": false
}Fields§
§network: SendSolTransactionSimulationInputNetworkThe Solana network to send the transaction to.
operation: SendSolTransactionSimulationInputOperationRule 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 server wallet. When false, the server wallet is responsible for paying the transaction fees.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SendSolTransactionSimulationInput
impl<'de> Deserialize<'de> for SendSolTransactionSimulationInput
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<&SendSolTransactionSimulationInput> for SendSolTransactionSimulationInput
impl From<&SendSolTransactionSimulationInput> for SendSolTransactionSimulationInput
Source§fn from(value: &SendSolTransactionSimulationInput) -> Self
fn from(value: &SendSolTransactionSimulationInput) -> Self
Converts to this type from the input type.
Source§impl From<SendSolTransactionSimulationInput> for SimulatePoliciesRequest
impl From<SendSolTransactionSimulationInput> for SimulatePoliciesRequest
Source§fn from(value: SendSolTransactionSimulationInput) -> Self
fn from(value: SendSolTransactionSimulationInput) -> Self
Converts to this type from the input type.
Source§impl From<SendSolTransactionSimulationInput> for SendSolTransactionSimulationInput
impl From<SendSolTransactionSimulationInput> for SendSolTransactionSimulationInput
Source§fn from(value: SendSolTransactionSimulationInput) -> Self
fn from(value: SendSolTransactionSimulationInput) -> Self
Converts to this type from the input type.
Source§impl TryFrom<SendSolTransactionSimulationInput> for SendSolTransactionSimulationInput
impl TryFrom<SendSolTransactionSimulationInput> for SendSolTransactionSimulationInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: SendSolTransactionSimulationInput,
) -> Result<Self, ConversionError>
fn try_from( value: SendSolTransactionSimulationInput, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SendSolTransactionSimulationInput
impl RefUnwindSafe for SendSolTransactionSimulationInput
impl Send for SendSolTransactionSimulationInput
impl Sync for SendSolTransactionSimulationInput
impl Unpin for SendSolTransactionSimulationInput
impl UnsafeUnpin for SendSolTransactionSimulationInput
impl UnwindSafe for SendSolTransactionSimulationInput
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