pub enum WalletRpcResponse {
SolanaSignTransactionRpcResponse(SolanaSignTransactionRpcResponse),
SolanaSignAndSendTransactionRpcResponse(SolanaSignAndSendTransactionRpcResponse),
SolanaSignMessageRpcResponse(SolanaSignMessageRpcResponse),
EthereumSignTransactionRpcResponse(EthereumSignTransactionRpcResponse),
EthereumSendTransactionRpcResponse(EthereumSendTransactionRpcResponse),
EthereumPersonalSignRpcResponse(EthereumPersonalSignRpcResponse),
EthereumSignTypedDataRpcResponse(EthereumSignTypedDataRpcResponse),
EthereumSign7702AuthorizationRpcResponse(EthereumSign7702AuthorizationRpcResponse),
EthereumSecp256k1SignRpcResponse(EthereumSecp256k1SignRpcResponse),
}Expand description
WalletRpcResponse
JSON schema
{
"examples": [
{
"data": {
"caip2": "eip155:8453",
"hash":
"0x0775aeed9c9ce6e0fbc4db25c5e4e6368029651c905c286f813126a09025a21e",
"transaction_request": {
"chain_id": "1",
"from": "0x38Bc05d7b69F63D05337829fA5Dc4896F179B5fA",
"gas_limit": "0x5208",
"max_fee_per_gas": "0xfc328",
"max_priority_fee_per_gas": "0xf4240",
"nonce": 1,
"to": "0xF1DBff66C993EE895C8cb176c30b07A559d76496",
"type": 2,
"value": "0x1"
}
},
"method": "eth_sendTransaction"
}
],
"oneOf": [
{
"$ref": "#/components/schemas/SolanaSignTransactionRpcResponse"
},
{
"$ref":
"#/components/schemas/SolanaSignAndSendTransactionRpcResponse"
},
{
"$ref": "#/components/schemas/SolanaSignMessageRpcResponse"
},
{
"$ref": "#/components/schemas/EthereumSignTransactionRpcResponse"
},
{
"$ref": "#/components/schemas/EthereumSendTransactionRpcResponse"
},
{
"$ref": "#/components/schemas/EthereumPersonalSignRpcResponse"
},
{
"$ref": "#/components/schemas/EthereumSignTypedDataRpcResponse"
},
{
"$ref":
"#/components/schemas/EthereumSign7702AuthorizationRpcResponse"
},
{
"$ref": "#/components/schemas/EthereumSecp256k1SignRpcResponse"
}
]
}Variants§
SolanaSignTransactionRpcResponse(SolanaSignTransactionRpcResponse)
SolanaSignAndSendTransactionRpcResponse(SolanaSignAndSendTransactionRpcResponse)
SolanaSignMessageRpcResponse(SolanaSignMessageRpcResponse)
EthereumSignTransactionRpcResponse(EthereumSignTransactionRpcResponse)
EthereumSendTransactionRpcResponse(EthereumSendTransactionRpcResponse)
EthereumPersonalSignRpcResponse(EthereumPersonalSignRpcResponse)
EthereumSignTypedDataRpcResponse(EthereumSignTypedDataRpcResponse)
EthereumSign7702AuthorizationRpcResponse(EthereumSign7702AuthorizationRpcResponse)
EthereumSecp256k1SignRpcResponse(EthereumSecp256k1SignRpcResponse)
Trait Implementations§
Source§impl Clone for WalletRpcResponse
impl Clone for WalletRpcResponse
Source§fn clone(&self) -> WalletRpcResponse
fn clone(&self) -> WalletRpcResponse
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 WalletRpcResponse
impl Debug for WalletRpcResponse
Source§impl<'de> Deserialize<'de> for WalletRpcResponse
impl<'de> Deserialize<'de> for WalletRpcResponse
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<&WalletRpcResponse> for WalletRpcResponse
impl From<&WalletRpcResponse> for WalletRpcResponse
Source§fn from(value: &WalletRpcResponse) -> Self
fn from(value: &WalletRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<EthereumPersonalSignRpcResponse> for WalletRpcResponse
impl From<EthereumPersonalSignRpcResponse> for WalletRpcResponse
Source§fn from(value: EthereumPersonalSignRpcResponse) -> Self
fn from(value: EthereumPersonalSignRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<EthereumSecp256k1SignRpcResponse> for WalletRpcResponse
impl From<EthereumSecp256k1SignRpcResponse> for WalletRpcResponse
Source§fn from(value: EthereumSecp256k1SignRpcResponse) -> Self
fn from(value: EthereumSecp256k1SignRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<EthereumSendTransactionRpcResponse> for WalletRpcResponse
impl From<EthereumSendTransactionRpcResponse> for WalletRpcResponse
Source§fn from(value: EthereumSendTransactionRpcResponse) -> Self
fn from(value: EthereumSendTransactionRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<EthereumSign7702AuthorizationRpcResponse> for WalletRpcResponse
impl From<EthereumSign7702AuthorizationRpcResponse> for WalletRpcResponse
Source§fn from(value: EthereumSign7702AuthorizationRpcResponse) -> Self
fn from(value: EthereumSign7702AuthorizationRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<EthereumSignTransactionRpcResponse> for WalletRpcResponse
impl From<EthereumSignTransactionRpcResponse> for WalletRpcResponse
Source§fn from(value: EthereumSignTransactionRpcResponse) -> Self
fn from(value: EthereumSignTransactionRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<EthereumSignTypedDataRpcResponse> for WalletRpcResponse
impl From<EthereumSignTypedDataRpcResponse> for WalletRpcResponse
Source§fn from(value: EthereumSignTypedDataRpcResponse) -> Self
fn from(value: EthereumSignTypedDataRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<SolanaSignAndSendTransactionRpcResponse> for WalletRpcResponse
impl From<SolanaSignAndSendTransactionRpcResponse> for WalletRpcResponse
Source§fn from(value: SolanaSignAndSendTransactionRpcResponse) -> Self
fn from(value: SolanaSignAndSendTransactionRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<SolanaSignMessageRpcResponse> for WalletRpcResponse
impl From<SolanaSignMessageRpcResponse> for WalletRpcResponse
Source§fn from(value: SolanaSignMessageRpcResponse) -> Self
fn from(value: SolanaSignMessageRpcResponse) -> Self
Converts to this type from the input type.
Source§impl From<SolanaSignTransactionRpcResponse> for WalletRpcResponse
impl From<SolanaSignTransactionRpcResponse> for WalletRpcResponse
Source§fn from(value: SolanaSignTransactionRpcResponse) -> Self
fn from(value: SolanaSignTransactionRpcResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WalletRpcResponse
impl RefUnwindSafe for WalletRpcResponse
impl Send for WalletRpcResponse
impl Sync for WalletRpcResponse
impl Unpin for WalletRpcResponse
impl UnwindSafe for WalletRpcResponse
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