pub struct SignEndUserSolTransactionSimulationInput {
pub address: SignEndUserSolTransactionSimulationInputAddress,
pub network: Option<SignEndUserSolTransactionSimulationInputNetwork>,
pub operation: SignEndUserSolTransactionSimulationInputOperation,
pub transaction: String,
pub user_id: SignEndUserSolTransactionSimulationInputUserId,
}Expand description
SignEndUserSolTransactionSimulationInput
JSON schema
{
"title": "SignEndUserSolTransactionSimulationInput",
"examples": [
{
"address": "HpabPRRCFbBKSuJr5PdkVvQc85FyxyTWkFM2obBRSvHT",
"operation": "signEndUserSolTransaction",
"transaction": "AQABAgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAQECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8CBgMBAQAAAAIBAwQAAAAABgIAAAAAAAYDBQEBAAAGBAgUAAAAA6AMAAAAAAAAGBgUBAQEBBgcEAQAAAAYICgMBAQIDBgkCBgAAAAYKAwABAQEGCwMGAQEBBgwDAAABAQAAAAA=",
"userId": "e051beeb-7163-4527-a5b6-35e301529ff2"
}
],
"type": "object",
"required": [
"address",
"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 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": [
"signEndUserSolTransaction"
],
"x-go-type": "string"
},
"transaction": {
"description": "The base64 encoded transaction to evaluate.",
"type": "string"
},
"userId": {
"description": "The ID of the end user.",
"type": "string",
"pattern": "^[a-zA-Z0-9-]{1,100}$"
}
},
"additionalProperties": false
}Fields§
§address: SignEndUserSolTransactionSimulationInputAddressThe base58 encoded address of the Solana account belonging to the end user.
network: Option<SignEndUserSolTransactionSimulationInputNetwork>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: SignEndUserSolTransactionSimulationInputOperationRule operation to simulate.
transaction: StringThe base64 encoded transaction to evaluate.
user_id: SignEndUserSolTransactionSimulationInputUserIdThe ID of the end user.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SignEndUserSolTransactionSimulationInput
impl<'de> Deserialize<'de> for SignEndUserSolTransactionSimulationInput
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<&SignEndUserSolTransactionSimulationInput> for SignEndUserSolTransactionSimulationInput
impl From<&SignEndUserSolTransactionSimulationInput> for SignEndUserSolTransactionSimulationInput
Source§fn from(value: &SignEndUserSolTransactionSimulationInput) -> Self
fn from(value: &SignEndUserSolTransactionSimulationInput) -> Self
Converts to this type from the input type.
Source§impl From<SignEndUserSolTransactionSimulationInput> for SimulatePoliciesRequest
impl From<SignEndUserSolTransactionSimulationInput> for SimulatePoliciesRequest
Source§fn from(value: SignEndUserSolTransactionSimulationInput) -> Self
fn from(value: SignEndUserSolTransactionSimulationInput) -> Self
Converts to this type from the input type.
Source§impl From<SignEndUserSolTransactionSimulationInput> for SignEndUserSolTransactionSimulationInput
impl From<SignEndUserSolTransactionSimulationInput> for SignEndUserSolTransactionSimulationInput
Source§fn from(value: SignEndUserSolTransactionSimulationInput) -> Self
fn from(value: SignEndUserSolTransactionSimulationInput) -> Self
Converts to this type from the input type.
Source§impl TryFrom<SignEndUserSolTransactionSimulationInput> for SignEndUserSolTransactionSimulationInput
impl TryFrom<SignEndUserSolTransactionSimulationInput> for SignEndUserSolTransactionSimulationInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: SignEndUserSolTransactionSimulationInput,
) -> Result<Self, ConversionError>
fn try_from( value: SignEndUserSolTransactionSimulationInput, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SignEndUserSolTransactionSimulationInput
impl RefUnwindSafe for SignEndUserSolTransactionSimulationInput
impl Send for SignEndUserSolTransactionSimulationInput
impl Sync for SignEndUserSolTransactionSimulationInput
impl Unpin for SignEndUserSolTransactionSimulationInput
impl UnsafeUnpin for SignEndUserSolTransactionSimulationInput
impl UnwindSafe for SignEndUserSolTransactionSimulationInput
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