pub struct SendEndUserOperationSimulationInput {
pub address: SendEndUserOperationSimulationInputAddress,
pub calls: Vec<EvmCall>,
pub data_suffix: Option<SendEndUserOperationSimulationInputDataSuffix>,
pub network: EvmUserOperationNetwork,
pub operation: SendEndUserOperationSimulationInputOperation,
pub paymaster_context: Option<PaymasterContext>,
pub paymaster_url: Option<Url>,
pub use_cdp_paymaster: bool,
pub user_id: SendEndUserOperationSimulationInputUserId,
}Expand description
SendEndUserOperationSimulationInput
JSON schema
{
"title": "SendEndUserOperationSimulationInput",
"examples": [
{
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"calls": [],
"network": "base",
"operation": "sendEndUserOperation",
"useCdpPaymaster": false,
"userId": "e051beeb-7163-4527-a5b6-35e301529ff2"
}
],
"type": "object",
"required": [
"address",
"calls",
"network",
"operation",
"useCdpPaymaster",
"userId"
],
"properties": {
"address": {
"description": "The Smart Account address.",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"calls": {
"description": "The list of calls to make from the Smart Account.",
"type": "array",
"items": {
"$ref": "#/components/schemas/EvmCall"
}
},
"dataSuffix": {
"description": "The EIP-8021 data suffix (hex-encoded) that enables transaction attribution for the user operation.",
"type": "string",
"pattern": "^0x[0-9a-fA-F]+$"
},
"network": {
"$ref": "#/components/schemas/EvmUserOperationNetwork"
},
"operation": {
"description": "Rule operation to simulate.",
"type": "string",
"enum": [
"sendEndUserOperation"
],
"x-go-type": "string"
},
"paymasterContext": {
"$ref": "#/components/schemas/PaymasterContext"
},
"paymasterUrl": {
"description": "The URL of the paymaster to use for the user operation. If using the CDP Paymaster, use the useCdpPaymaster option.",
"allOf": [
{
"$ref": "#/components/schemas/Url"
}
]
},
"useCdpPaymaster": {
"description": "Whether to use the CDP Paymaster for the user operation.",
"examples": [
true
],
"type": "boolean"
},
"userId": {
"description": "The ID of the end user.",
"type": "string",
"pattern": "^[a-zA-Z0-9-]{1,100}$"
}
},
"additionalProperties": false
}Fields§
§address: SendEndUserOperationSimulationInputAddressThe Smart Account address.
calls: Vec<EvmCall>The list of calls to make from the Smart Account.
data_suffix: Option<SendEndUserOperationSimulationInputDataSuffix>The EIP-8021 data suffix (hex-encoded) that enables transaction attribution for the user operation.
network: EvmUserOperationNetwork§operation: SendEndUserOperationSimulationInputOperationRule operation to simulate.
paymaster_context: Option<PaymasterContext>§paymaster_url: Option<Url>The URL of the paymaster to use for the user operation. If using the CDP Paymaster, use the useCdpPaymaster option.
use_cdp_paymaster: boolWhether to use the CDP Paymaster for the user operation.
user_id: SendEndUserOperationSimulationInputUserIdThe ID of the end user.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SendEndUserOperationSimulationInput
impl<'de> Deserialize<'de> for SendEndUserOperationSimulationInput
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<&SendEndUserOperationSimulationInput> for SendEndUserOperationSimulationInput
impl From<&SendEndUserOperationSimulationInput> for SendEndUserOperationSimulationInput
Source§fn from(value: &SendEndUserOperationSimulationInput) -> Self
fn from(value: &SendEndUserOperationSimulationInput) -> Self
Converts to this type from the input type.
Source§impl From<SendEndUserOperationSimulationInput> for SimulatePoliciesRequest
impl From<SendEndUserOperationSimulationInput> for SimulatePoliciesRequest
Source§fn from(value: SendEndUserOperationSimulationInput) -> Self
fn from(value: SendEndUserOperationSimulationInput) -> Self
Converts to this type from the input type.
Source§impl From<SendEndUserOperationSimulationInput> for SendEndUserOperationSimulationInput
impl From<SendEndUserOperationSimulationInput> for SendEndUserOperationSimulationInput
Source§fn from(value: SendEndUserOperationSimulationInput) -> Self
fn from(value: SendEndUserOperationSimulationInput) -> Self
Converts to this type from the input type.
Source§impl TryFrom<SendEndUserOperationSimulationInput> for SendEndUserOperationSimulationInput
impl TryFrom<SendEndUserOperationSimulationInput> for SendEndUserOperationSimulationInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: SendEndUserOperationSimulationInput,
) -> Result<Self, ConversionError>
fn try_from( value: SendEndUserOperationSimulationInput, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SendEndUserOperationSimulationInput
impl RefUnwindSafe for SendEndUserOperationSimulationInput
impl Send for SendEndUserOperationSimulationInput
impl Sync for SendEndUserOperationSimulationInput
impl Unpin for SendEndUserOperationSimulationInput
impl UnsafeUnpin for SendEndUserOperationSimulationInput
impl UnwindSafe for SendEndUserOperationSimulationInput
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