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<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<&WalletRpcBody> for WalletRpcBody
impl From<&WalletRpcBody> for WalletRpcBody
Source§fn from(value: &WalletRpcBody) -> Self
fn from(value: &WalletRpcBody) -> Self
Converts to this type from the input type.
Source§impl From<EthereumPersonalSignRpcInput> for WalletRpcBody
impl From<EthereumPersonalSignRpcInput> for WalletRpcBody
Source§fn from(value: EthereumPersonalSignRpcInput) -> Self
fn from(value: EthereumPersonalSignRpcInput) -> Self
Converts to this type from the input type.
Source§impl From<EthereumSecp256k1SignRpcInput> for WalletRpcBody
impl From<EthereumSecp256k1SignRpcInput> for WalletRpcBody
Source§fn from(value: EthereumSecp256k1SignRpcInput) -> Self
fn from(value: EthereumSecp256k1SignRpcInput) -> Self
Converts to this type from the input type.
Source§impl From<EthereumSendTransactionRpcInput> for WalletRpcBody
impl From<EthereumSendTransactionRpcInput> for WalletRpcBody
Source§fn from(value: EthereumSendTransactionRpcInput) -> Self
fn from(value: EthereumSendTransactionRpcInput) -> Self
Converts to this type from the input type.
Source§impl From<EthereumSign7702AuthorizationRpcInput> for WalletRpcBody
impl From<EthereumSign7702AuthorizationRpcInput> for WalletRpcBody
Source§fn from(value: EthereumSign7702AuthorizationRpcInput) -> Self
fn from(value: EthereumSign7702AuthorizationRpcInput) -> Self
Converts to this type from the input type.
Source§impl From<EthereumSignTransactionRpcInput> for WalletRpcBody
impl From<EthereumSignTransactionRpcInput> for WalletRpcBody
Source§fn from(value: EthereumSignTransactionRpcInput) -> Self
fn from(value: EthereumSignTransactionRpcInput) -> Self
Converts to this type from the input type.
Source§impl From<EthereumSignTypedDataRpcInput> for WalletRpcBody
impl From<EthereumSignTypedDataRpcInput> for WalletRpcBody
Source§fn from(value: EthereumSignTypedDataRpcInput) -> Self
fn from(value: EthereumSignTypedDataRpcInput) -> Self
Converts to this type from the input type.
Source§impl From<SolanaSignAndSendTransactionRpcInput> for WalletRpcBody
impl From<SolanaSignAndSendTransactionRpcInput> for WalletRpcBody
Source§fn from(value: SolanaSignAndSendTransactionRpcInput) -> Self
fn from(value: SolanaSignAndSendTransactionRpcInput) -> Self
Converts to this type from the input type.
Source§impl From<SolanaSignMessageRpcInput> for WalletRpcBody
impl From<SolanaSignMessageRpcInput> for WalletRpcBody
Source§fn from(value: SolanaSignMessageRpcInput) -> Self
fn from(value: SolanaSignMessageRpcInput) -> Self
Converts to this type from the input type.
Source§impl From<SolanaSignTransactionRpcInput> for WalletRpcBody
impl From<SolanaSignTransactionRpcInput> for WalletRpcBody
Source§fn from(value: SolanaSignTransactionRpcInput) -> Self
fn from(value: SolanaSignTransactionRpcInput) -> Self
Converts to this type from the input type.
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