pub struct UserOperationInput {
pub call_data: Hex,
pub call_gas_limit: Hex,
pub max_fee_per_gas: Hex,
pub max_priority_fee_per_gas: Hex,
pub nonce: Hex,
pub paymaster: Option<String>,
pub paymaster_data: Option<Hex>,
pub paymaster_post_op_gas_limit: Option<Hex>,
pub paymaster_verification_gas_limit: Option<Hex>,
pub pre_verification_gas: Hex,
pub sender: String,
pub verification_gas_limit: Hex,
}Expand description
An ERC-4337 user operation.
JSON schema
{
"title": "UserOperationInput",
"description": "An ERC-4337 user operation.",
"type": "object",
"required": [
"call_data",
"call_gas_limit",
"max_fee_per_gas",
"max_priority_fee_per_gas",
"nonce",
"pre_verification_gas",
"sender",
"verification_gas_limit"
],
"properties": {
"call_data": {
"$ref": "#/components/schemas/Hex"
},
"call_gas_limit": {
"$ref": "#/components/schemas/Hex"
},
"max_fee_per_gas": {
"$ref": "#/components/schemas/Hex"
},
"max_priority_fee_per_gas": {
"$ref": "#/components/schemas/Hex"
},
"nonce": {
"$ref": "#/components/schemas/Hex"
},
"paymaster": {
"type": "string"
},
"paymaster_data": {
"$ref": "#/components/schemas/Hex"
},
"paymaster_post_op_gas_limit": {
"$ref": "#/components/schemas/Hex"
},
"paymaster_verification_gas_limit": {
"$ref": "#/components/schemas/Hex"
},
"pre_verification_gas": {
"$ref": "#/components/schemas/Hex"
},
"sender": {
"type": "string"
},
"verification_gas_limit": {
"$ref": "#/components/schemas/Hex"
}
},
"x-stainless-model": "wallets.user_operation_input"
}Fields§
§call_data: Hex§call_gas_limit: Hex§max_fee_per_gas: Hex§max_priority_fee_per_gas: Hex§nonce: Hex§paymaster: Option<String>§paymaster_data: Option<Hex>§paymaster_post_op_gas_limit: Option<Hex>§paymaster_verification_gas_limit: Option<Hex>§pre_verification_gas: Hex§sender: String§verification_gas_limit: HexTrait Implementations§
Source§impl Clone for UserOperationInput
impl Clone for UserOperationInput
Source§fn clone(&self) -> UserOperationInput
fn clone(&self) -> UserOperationInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserOperationInput
impl Debug for UserOperationInput
Source§impl<'de> Deserialize<'de> for UserOperationInput
impl<'de> Deserialize<'de> for UserOperationInput
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<&UserOperationInput> for UserOperationInput
impl From<&UserOperationInput> for UserOperationInput
Source§fn from(value: &UserOperationInput) -> Self
fn from(value: &UserOperationInput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UserOperationInput
impl RefUnwindSafe for UserOperationInput
impl Send for UserOperationInput
impl Sync for UserOperationInput
impl Unpin for UserOperationInput
impl UnsafeUnpin for UserOperationInput
impl UnwindSafe for UserOperationInput
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