pub enum WalletRpcBody {
EthereumSignTransactionRpcInput(EthereumSignTransactionRpcInput),
EthereumSendTransactionRpcInput(EthereumSendTransactionRpcInput),
EthereumPersonalSignRpcInput(EthereumPersonalSignRpcInput),
EthereumSignTypedDataRpcInput(EthereumSignTypedDataRpcInput),
EthereumSign7702AuthorizationRpcInput(EthereumSign7702AuthorizationRpcInput),
EthereumSecp256k1SignRpcInput(EthereumSecp256k1SignRpcInput),
SolanaSignTransactionRpcInput(SolanaSignTransactionRpcInput),
SolanaSignAndSendTransactionRpcInput(SolanaSignAndSendTransactionRpcInput),
SolanaSignMessageRpcInput(SolanaSignMessageRpcInput),
}Expand description
WalletRpcBody
JSON schema
{
"examples": [
{
"caip2": "eip155:8453",
"chain_type": "ethereum",
"method": "eth_sendTransaction",
"params": {
"transaction": {
"to": "0x0000000000000000000000000000000000000000",
"value": 1
}
}
}
],
"oneOf": [
{
"$ref": "#/components/schemas/EthereumSignTransactionRpcInput"
},
{
"$ref": "#/components/schemas/EthereumSendTransactionRpcInput"
},
{
"$ref": "#/components/schemas/EthereumPersonalSignRpcInput"
},
{
"$ref": "#/components/schemas/EthereumSignTypedDataRpcInput"
},
{
"$ref":
"#/components/schemas/EthereumSign7702AuthorizationRpcInput"
},
{
"$ref": "#/components/schemas/EthereumSecp256k1SignRpcInput"
},
{
"$ref": "#/components/schemas/SolanaSignTransactionRpcInput"
},
{
"$ref": "#/components/schemas/SolanaSignAndSendTransactionRpcInput"
},
{
"$ref": "#/components/schemas/SolanaSignMessageRpcInput"
}
]
}Variants§
EthereumSignTransactionRpcInput(EthereumSignTransactionRpcInput)
EthereumSendTransactionRpcInput(EthereumSendTransactionRpcInput)
EthereumPersonalSignRpcInput(EthereumPersonalSignRpcInput)
EthereumSignTypedDataRpcInput(EthereumSignTypedDataRpcInput)
EthereumSign7702AuthorizationRpcInput(EthereumSign7702AuthorizationRpcInput)
EthereumSecp256k1SignRpcInput(EthereumSecp256k1SignRpcInput)
SolanaSignTransactionRpcInput(SolanaSignTransactionRpcInput)
SolanaSignAndSendTransactionRpcInput(SolanaSignAndSendTransactionRpcInput)
SolanaSignMessageRpcInput(SolanaSignMessageRpcInput)
Trait Implementations§
Source§impl Clone for WalletRpcBody
impl Clone for WalletRpcBody
Source§fn clone(&self) -> WalletRpcBody
fn clone(&self) -> WalletRpcBody
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 Debug for WalletRpcBody
impl Debug for WalletRpcBody
Source§impl<'de> Deserialize<'de> for WalletRpcBody
impl<'de> Deserialize<'de> for WalletRpcBody
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WalletRpcBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WalletRpcBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&WalletRpcBody> for WalletRpcBody
impl From<&WalletRpcBody> for WalletRpcBody
Source§fn from(value: &WalletRpcBody) -> WalletRpcBody
fn from(value: &WalletRpcBody) -> WalletRpcBody
Converts to this type from the input type.
Source§impl From<EthereumPersonalSignRpcInput> for WalletRpcBody
impl From<EthereumPersonalSignRpcInput> for WalletRpcBody
Source§fn from(value: EthereumPersonalSignRpcInput) -> WalletRpcBody
fn from(value: EthereumPersonalSignRpcInput) -> WalletRpcBody
Converts to this type from the input type.
Source§impl From<EthereumSecp256k1SignRpcInput> for WalletRpcBody
impl From<EthereumSecp256k1SignRpcInput> for WalletRpcBody
Source§fn from(value: EthereumSecp256k1SignRpcInput) -> WalletRpcBody
fn from(value: EthereumSecp256k1SignRpcInput) -> WalletRpcBody
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 From<EthereumSign7702AuthorizationRpcInput> for WalletRpcBody
impl From<EthereumSign7702AuthorizationRpcInput> for WalletRpcBody
Source§fn from(value: EthereumSign7702AuthorizationRpcInput) -> WalletRpcBody
fn from(value: EthereumSign7702AuthorizationRpcInput) -> WalletRpcBody
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 From<EthereumSignTypedDataRpcInput> for WalletRpcBody
impl From<EthereumSignTypedDataRpcInput> for WalletRpcBody
Source§fn from(value: EthereumSignTypedDataRpcInput) -> WalletRpcBody
fn from(value: EthereumSignTypedDataRpcInput) -> WalletRpcBody
Converts to this type from the input type.
Source§impl From<SolanaSignAndSendTransactionRpcInput> for WalletRpcBody
impl From<SolanaSignAndSendTransactionRpcInput> for WalletRpcBody
Source§fn from(value: SolanaSignAndSendTransactionRpcInput) -> WalletRpcBody
fn from(value: SolanaSignAndSendTransactionRpcInput) -> WalletRpcBody
Converts to this type from the input type.
Source§impl From<SolanaSignMessageRpcInput> for WalletRpcBody
impl From<SolanaSignMessageRpcInput> for WalletRpcBody
Source§fn from(value: SolanaSignMessageRpcInput) -> WalletRpcBody
fn from(value: SolanaSignMessageRpcInput) -> WalletRpcBody
Converts to this type from the input type.
Source§impl From<SolanaSignTransactionRpcInput> for WalletRpcBody
impl From<SolanaSignTransactionRpcInput> for WalletRpcBody
Source§fn from(value: SolanaSignTransactionRpcInput) -> WalletRpcBody
fn from(value: SolanaSignTransactionRpcInput) -> WalletRpcBody
Converts to this type from the input type.
Source§impl Serialize for WalletRpcBody
impl Serialize for WalletRpcBody
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 WalletRpcBody
impl RefUnwindSafe for WalletRpcBody
impl Send for WalletRpcBody
impl Sync for WalletRpcBody
impl Unpin for WalletRpcBody
impl UnwindSafe for WalletRpcBody
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