pub struct EthereumSignTransactionRpcInput {
pub address: Option<String>,
pub chain_type: Option<EthereumSignTransactionRpcInputChainType>,
pub method: EthereumSignTransactionRpcInputMethod,
pub params: EthereumSignTransactionRpcInputParams,
}Expand description
EthereumSignTransactionRpcInput
JSON schema
{
"type": "object",
"required": [
"method",
"params"
],
"properties": {
"address": {
"type": "string"
},
"chain_type": {
"type": "string",
"enum": [
"ethereum"
]
},
"method": {
"type": "string",
"enum": [
"eth_signTransaction"
]
},
"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
}
]
}
}
}
}
}
}
}Fields§
§address: Option<String>§chain_type: Option<EthereumSignTransactionRpcInputChainType>§method: EthereumSignTransactionRpcInputMethod§params: EthereumSignTransactionRpcInputParamsTrait Implementations§
Source§impl Clone for EthereumSignTransactionRpcInput
impl Clone for EthereumSignTransactionRpcInput
Source§fn clone(&self) -> EthereumSignTransactionRpcInput
fn clone(&self) -> EthereumSignTransactionRpcInput
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 EthereumSignTransactionRpcInput
impl<'de> Deserialize<'de> for EthereumSignTransactionRpcInput
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EthereumSignTransactionRpcInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EthereumSignTransactionRpcInput, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&EthereumSignTransactionRpcInput> for EthereumSignTransactionRpcInput
impl From<&EthereumSignTransactionRpcInput> for EthereumSignTransactionRpcInput
Source§fn from(
value: &EthereumSignTransactionRpcInput,
) -> EthereumSignTransactionRpcInput
fn from( value: &EthereumSignTransactionRpcInput, ) -> EthereumSignTransactionRpcInput
Converts to this type from the input type.
Source§impl From<EthereumSignTransactionRpcInput> for WalletRpcBody
impl From<EthereumSignTransactionRpcInput> for WalletRpcBody
Source§fn from(value: EthereumSignTransactionRpcInput) -> WalletRpcBody
fn from(value: EthereumSignTransactionRpcInput) -> WalletRpcBody
Converts to this type from the input type.
Source§impl Serialize for EthereumSignTransactionRpcInput
impl Serialize for EthereumSignTransactionRpcInput
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 EthereumSignTransactionRpcInput
impl RefUnwindSafe for EthereumSignTransactionRpcInput
impl Send for EthereumSignTransactionRpcInput
impl Sync for EthereumSignTransactionRpcInput
impl Unpin for EthereumSignTransactionRpcInput
impl UnwindSafe for EthereumSignTransactionRpcInput
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