pub struct SignSolTransactionSimulationInput {
pub address: SignSolTransactionSimulationInputAddress,
pub network: Option<SignSolTransactionSimulationInputNetwork>,
pub operation: SignSolTransactionSimulationInputOperation,
pub transaction: String,
}Expand description
SignSolTransactionSimulationInput
JSON schema
{
"title": "SignSolTransactionSimulationInput",
"examples": [
{
"address": "HpabPRRCFbBKSuJr5PdkVvQc85FyxyTWkFM2obBRSvHT",
"operation": "signSolTransaction",
"transaction": "AQABAgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAQECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8CBgMBAQAAAAIBAwQAAAAABgIAAAAAAAYDBQEBAAAGBAgAAAAABgUAAAAA6AMAAAAAAAAGBgUBAQEBBgcEAQAAAAYICgMBAQIDBgkCBgAAAAYKAwABAQEGCwMGAQEBBgwDAAABAQAAAAA="
}
],
"type": "object",
"required": [
"address",
"operation",
"transaction"
],
"properties": {
"address": {
"description": "The base58 encoded address of the Solana account.",
"type": "string",
"pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
},
"network": {
"description": "The Solana network the transaction targets. Required when using versioned transactions that reference address lookup tables, since resolving those tables requires querying a specific network. Optional otherwise.",
"examples": [
"solana-devnet"
],
"type": "string",
"enum": [
"solana",
"solana-devnet"
]
},
"operation": {
"description": "Rule operation to simulate.",
"type": "string",
"enum": [
"signSolTransaction"
],
"x-go-type": "string"
},
"transaction": {
"description": "The base64 encoded transaction to evaluate.",
"type": "string"
}
},
"additionalProperties": false
}Fields§
§address: SignSolTransactionSimulationInputAddressThe base58 encoded address of the Solana account.
network: Option<SignSolTransactionSimulationInputNetwork>The Solana network the transaction targets. Required when using versioned transactions that reference address lookup tables, since resolving those tables requires querying a specific network. Optional otherwise.
operation: SignSolTransactionSimulationInputOperationRule operation to simulate.
transaction: StringThe base64 encoded transaction to evaluate.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SignSolTransactionSimulationInput
impl<'de> Deserialize<'de> for SignSolTransactionSimulationInput
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<&SignSolTransactionSimulationInput> for SignSolTransactionSimulationInput
impl From<&SignSolTransactionSimulationInput> for SignSolTransactionSimulationInput
Source§fn from(value: &SignSolTransactionSimulationInput) -> Self
fn from(value: &SignSolTransactionSimulationInput) -> Self
Converts to this type from the input type.
Source§impl From<SignSolTransactionSimulationInput> for SimulatePoliciesRequest
impl From<SignSolTransactionSimulationInput> for SimulatePoliciesRequest
Source§fn from(value: SignSolTransactionSimulationInput) -> Self
fn from(value: SignSolTransactionSimulationInput) -> Self
Converts to this type from the input type.
Source§impl From<SignSolTransactionSimulationInput> for SignSolTransactionSimulationInput
impl From<SignSolTransactionSimulationInput> for SignSolTransactionSimulationInput
Source§fn from(value: SignSolTransactionSimulationInput) -> Self
fn from(value: SignSolTransactionSimulationInput) -> Self
Converts to this type from the input type.
Source§impl TryFrom<SignSolTransactionSimulationInput> for SignSolTransactionSimulationInput
impl TryFrom<SignSolTransactionSimulationInput> for SignSolTransactionSimulationInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: SignSolTransactionSimulationInput,
) -> Result<Self, ConversionError>
fn try_from( value: SignSolTransactionSimulationInput, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SignSolTransactionSimulationInput
impl RefUnwindSafe for SignSolTransactionSimulationInput
impl Send for SignSolTransactionSimulationInput
impl Sync for SignSolTransactionSimulationInput
impl Unpin for SignSolTransactionSimulationInput
impl UnsafeUnpin for SignSolTransactionSimulationInput
impl UnwindSafe for SignSolTransactionSimulationInput
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