pub struct EthereumSendTransactionRpcInput {
pub address: Option<String>,
pub caip2: EthereumSendTransactionRpcInputCaip2,
pub chain_type: Option<EthereumSendTransactionRpcInputChainType>,
pub method: EthereumSendTransactionRpcInputMethod,
pub params: EthereumSendTransactionRpcInputParams,
pub sponsor: Option<bool>,
}Expand description
EthereumSendTransactionRpcInput
JSON schema
{
"type": "object",
"required": [
"caip2",
"method",
"params"
],
"properties": {
"address": {
"type": "string"
},
"caip2": {
"type": "string",
"pattern": "^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$"
},
"chain_type": {
"type": "string",
"enum": [
"ethereum"
]
},
"method": {
"type": "string",
"enum": [
"eth_sendTransaction"
]
},
"params": {
"type": "object",
"required": [
"transaction"
],
"properties": {
"transaction": {
"type": "object",
"properties": {
"chain_id": {
"oneOf": [
{
"type": "string"
},
{
"type": "integer",
"maximum": 9007199254740991.0,
"minimum": -9007199254740991.0
}
]
},
"data": {
"type": "string"
},
"from": {
"type": "string"
},
"gas_limit": {
"oneOf": [
{
"type": "string"
},
{
"type": "integer",
"maximum": 9007199254740991.0,
"minimum": -9007199254740991.0
}
]
},
"gas_price": {
"oneOf": [
{
"type": "string"
},
{
"type": "integer",
"maximum": 9007199254740991.0,
"minimum": -9007199254740991.0
}
]
},
"max_fee_per_gas": {
"oneOf": [
{
"type": "string"
},
{
"type": "integer",
"maximum": 9007199254740991.0,
"minimum": -9007199254740991.0
}
]
},
"max_priority_fee_per_gas": {
"oneOf": [
{
"type": "string"
},
{
"type": "integer",
"maximum": 9007199254740991.0,
"minimum": -9007199254740991.0
}
]
},
"nonce": {
"oneOf": [
{
"type": "string"
},
{
"type": "integer",
"maximum": 9007199254740991.0,
"minimum": -9007199254740991.0
}
]
},
"to": {
"type": "string"
},
"type": {
"oneOf": [
{
"type": "number",
"enum": [
0.0
]
},
{
"type": "number",
"enum": [
1.0
]
},
{
"type": "number",
"enum": [
2.0
]
}
]
},
"value": {
"oneOf": [
{
"type": "string"
},
{
"type": "integer",
"maximum": 9007199254740991.0,
"minimum": -9007199254740991.0
}
]
}
}
}
}
},
"sponsor": {
"type": "boolean"
}
}
}Fields§
§address: Option<String>§caip2: EthereumSendTransactionRpcInputCaip2§chain_type: Option<EthereumSendTransactionRpcInputChainType>§method: EthereumSendTransactionRpcInputMethod§params: EthereumSendTransactionRpcInputParams§sponsor: Option<bool>Trait Implementations§
Source§impl Clone for EthereumSendTransactionRpcInput
impl Clone for EthereumSendTransactionRpcInput
Source§fn clone(&self) -> EthereumSendTransactionRpcInput
fn clone(&self) -> EthereumSendTransactionRpcInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for EthereumSendTransactionRpcInput
impl<'de> Deserialize<'de> for EthereumSendTransactionRpcInput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EthereumSendTransactionRpcInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EthereumSendTransactionRpcInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&EthereumSendTransactionRpcInput> for EthereumSendTransactionRpcInput
impl From<&EthereumSendTransactionRpcInput> for EthereumSendTransactionRpcInput
Source§fn from(
value: &EthereumSendTransactionRpcInput,
) -> EthereumSendTransactionRpcInput
fn from( value: &EthereumSendTransactionRpcInput, ) -> EthereumSendTransactionRpcInput
Converts to this type from the input type.
Source§impl From<EthereumSendTransactionRpcInput> for WalletRpcBody
impl From<EthereumSendTransactionRpcInput> for WalletRpcBody
Source§fn from(value: EthereumSendTransactionRpcInput) -> WalletRpcBody
fn from(value: EthereumSendTransactionRpcInput) -> WalletRpcBody
Converts to this type from the input type.
Source§impl Serialize for EthereumSendTransactionRpcInput
impl Serialize for EthereumSendTransactionRpcInput
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for EthereumSendTransactionRpcInput
impl RefUnwindSafe for EthereumSendTransactionRpcInput
impl Send for EthereumSendTransactionRpcInput
impl Sync for EthereumSendTransactionRpcInput
impl Unpin for EthereumSendTransactionRpcInput
impl UnwindSafe for EthereumSendTransactionRpcInput
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