pub struct EvmCall {
pub data: EvmCallData,
pub to: EvmCallTo,
pub value: String,
}
Expand description
EvmCall
JSON schema
{
"type": "object",
"required": [
"data",
"to",
"value"
],
"properties": {
"data": {
"description": "The call data to send. This is the hex-encoded data of the function call consisting of the method selector and the function arguments.",
"examples": [
"0xa9059cbb000000000000000000000000fc807d1be4997e5c7b33e4d8d57e60c5b0f02b1a0000000000000000000000000000000000000000000000000000000000000064"
],
"type": "string",
"pattern": "^0x[0-9a-fA-F]*$"
},
"to": {
"description": "The address the call is directed to.",
"examples": [
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
],
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"value": {
"description": "The amount of ETH to send with the call, in wei.",
"examples": [
"0"
],
"type": "string"
}
}
}
Fields§
§data: EvmCallData
The call data to send. This is the hex-encoded data of the function call consisting of the method selector and the function arguments.
to: EvmCallTo
The address the call is directed to.
value: String
The amount of ETH to send with the call, in wei.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EvmCall
impl<'de> Deserialize<'de> for EvmCall
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
Auto Trait Implementations§
impl Freeze for EvmCall
impl RefUnwindSafe for EvmCall
impl Send for EvmCall
impl Sync for EvmCall
impl Unpin for EvmCall
impl UnwindSafe for EvmCall
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