pub struct SendEndUserEvmAssetSimulationInput {
pub address: BlockchainAddress,
pub amount: SendEndUserEvmAssetSimulationInputAmount,
pub asset: Asset,
pub network: SendEndUserEvmAssetSimulationInputNetwork,
pub operation: SendEndUserEvmAssetSimulationInputOperation,
pub paymaster_context: Option<PaymasterContext>,
pub paymaster_url: Option<Url>,
pub to: BlockchainAddress,
pub use_cdp_paymaster: Option<bool>,
pub user_id: SendEndUserEvmAssetSimulationInputUserId,
}Expand description
SendEndUserEvmAssetSimulationInput
JSON schema
{
"title": "SendEndUserEvmAssetSimulationInput",
"examples": [
{
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"amount": "1.50",
"asset": "usdc",
"network": "base",
"operation": "sendEndUserEvmAsset",
"to": "0x1234567890123456789012345678901234567890",
"userId": "e051beeb-7163-4527-a5b6-35e301529ff2"
}
],
"type": "object",
"required": [
"address",
"amount",
"asset",
"network",
"operation",
"to",
"userId"
],
"properties": {
"address": {
"$ref": "#/components/schemas/BlockchainAddress"
},
"amount": {
"description": "The amount of USDC to send as a decimal string (e.g. \"1.5\" or \"25.50\").",
"type": "string",
"maxLength": 32,
"minLength": 1
},
"asset": {
"$ref": "#/components/schemas/Asset"
},
"network": {
"description": "The EVM network to send USDC on.",
"examples": [
"base-sepolia"
],
"type": "string",
"enum": [
"base",
"base-sepolia",
"ethereum",
"ethereum-sepolia",
"avalanche",
"polygon",
"optimism",
"arbitrum",
"arbitrum-sepolia",
"world",
"world-sepolia"
]
},
"operation": {
"description": "Rule operation to simulate.",
"type": "string",
"enum": [
"sendEndUserEvmAsset"
],
"x-go-type": "string"
},
"paymasterContext": {
"$ref": "#/components/schemas/PaymasterContext"
},
"paymasterUrl": {
"description": "Optional custom Paymaster URL for gas sponsorship on Smart Accounts. Cannot be used with useCdpPaymaster.",
"allOf": [
{
"$ref": "#/components/schemas/Url"
}
]
},
"to": {
"$ref": "#/components/schemas/BlockchainAddress"
},
"useCdpPaymaster": {
"description": "Whether to use CDP Paymaster for gas sponsorship on Smart Accounts. Ignored for EOAs; cannot be used with paymasterUrl.",
"type": "boolean"
},
"userId": {
"description": "The ID of the end user.",
"type": "string",
"pattern": "^[a-zA-Z0-9-]{1,100}$"
}
},
"additionalProperties": false
}Fields§
§address: BlockchainAddress§amount: SendEndUserEvmAssetSimulationInputAmountThe amount of USDC to send as a decimal string (e.g. “1.5” or “25.50”).
asset: Asset§network: SendEndUserEvmAssetSimulationInputNetworkThe EVM network to send USDC on.
operation: SendEndUserEvmAssetSimulationInputOperationRule operation to simulate.
paymaster_context: Option<PaymasterContext>§paymaster_url: Option<Url>Optional custom Paymaster URL for gas sponsorship on Smart Accounts. Cannot be used with useCdpPaymaster.
to: BlockchainAddress§use_cdp_paymaster: Option<bool>Whether to use CDP Paymaster for gas sponsorship on Smart Accounts. Ignored for EOAs; cannot be used with paymasterUrl.
user_id: SendEndUserEvmAssetSimulationInputUserIdThe ID of the end user.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SendEndUserEvmAssetSimulationInput
impl<'de> Deserialize<'de> for SendEndUserEvmAssetSimulationInput
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<&SendEndUserEvmAssetSimulationInput> for SendEndUserEvmAssetSimulationInput
impl From<&SendEndUserEvmAssetSimulationInput> for SendEndUserEvmAssetSimulationInput
Source§fn from(value: &SendEndUserEvmAssetSimulationInput) -> Self
fn from(value: &SendEndUserEvmAssetSimulationInput) -> Self
Converts to this type from the input type.
Source§impl From<SendEndUserEvmAssetSimulationInput> for SimulatePoliciesRequest
impl From<SendEndUserEvmAssetSimulationInput> for SimulatePoliciesRequest
Source§fn from(value: SendEndUserEvmAssetSimulationInput) -> Self
fn from(value: SendEndUserEvmAssetSimulationInput) -> Self
Converts to this type from the input type.
Source§impl From<SendEndUserEvmAssetSimulationInput> for SendEndUserEvmAssetSimulationInput
impl From<SendEndUserEvmAssetSimulationInput> for SendEndUserEvmAssetSimulationInput
Source§fn from(value: SendEndUserEvmAssetSimulationInput) -> Self
fn from(value: SendEndUserEvmAssetSimulationInput) -> Self
Converts to this type from the input type.
Source§impl TryFrom<SendEndUserEvmAssetSimulationInput> for SendEndUserEvmAssetSimulationInput
impl TryFrom<SendEndUserEvmAssetSimulationInput> for SendEndUserEvmAssetSimulationInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: SendEndUserEvmAssetSimulationInput,
) -> Result<Self, ConversionError>
fn try_from( value: SendEndUserEvmAssetSimulationInput, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SendEndUserEvmAssetSimulationInput
impl RefUnwindSafe for SendEndUserEvmAssetSimulationInput
impl Send for SendEndUserEvmAssetSimulationInput
impl Sync for SendEndUserEvmAssetSimulationInput
impl Unpin for SendEndUserEvmAssetSimulationInput
impl UnsafeUnpin for SendEndUserEvmAssetSimulationInput
impl UnwindSafe for SendEndUserEvmAssetSimulationInput
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