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<WalletRpcResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WalletRpcResponse, <__D as Deserializer<'de>>::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) -> WalletRpcResponse
fn from(value: &WalletRpcResponse) -> WalletRpcResponse
Converts to this type from the input type.
Source§impl From<EthereumPersonalSignRpcResponse> for WalletRpcResponse
impl From<EthereumPersonalSignRpcResponse> for WalletRpcResponse
Source§fn from(value: EthereumPersonalSignRpcResponse) -> WalletRpcResponse
fn from(value: EthereumPersonalSignRpcResponse) -> WalletRpcResponse
Converts to this type from the input type.
Source§impl From<EthereumSecp256k1SignRpcResponse> for WalletRpcResponse
impl From<EthereumSecp256k1SignRpcResponse> for WalletRpcResponse
Source§fn from(value: EthereumSecp256k1SignRpcResponse) -> WalletRpcResponse
fn from(value: EthereumSecp256k1SignRpcResponse) -> WalletRpcResponse
Converts to this type from the input type.
Source§impl From<EthereumSendTransactionRpcResponse> for WalletRpcResponse
impl From<EthereumSendTransactionRpcResponse> for WalletRpcResponse
Source§fn from(value: EthereumSendTransactionRpcResponse) -> WalletRpcResponse
fn from(value: EthereumSendTransactionRpcResponse) -> WalletRpcResponse
Converts to this type from the input type.
Source§impl From<EthereumSign7702AuthorizationRpcResponse> for WalletRpcResponse
impl From<EthereumSign7702AuthorizationRpcResponse> for WalletRpcResponse
Source§fn from(value: EthereumSign7702AuthorizationRpcResponse) -> WalletRpcResponse
fn from(value: EthereumSign7702AuthorizationRpcResponse) -> WalletRpcResponse
Converts to this type from the input type.
Source§impl From<EthereumSignTransactionRpcResponse> for WalletRpcResponse
impl From<EthereumSignTransactionRpcResponse> for WalletRpcResponse
Source§fn from(value: EthereumSignTransactionRpcResponse) -> WalletRpcResponse
fn from(value: EthereumSignTransactionRpcResponse) -> WalletRpcResponse
Converts to this type from the input type.
Source§impl From<EthereumSignTypedDataRpcResponse> for WalletRpcResponse
impl From<EthereumSignTypedDataRpcResponse> for WalletRpcResponse
Source§fn from(value: EthereumSignTypedDataRpcResponse) -> WalletRpcResponse
fn from(value: EthereumSignTypedDataRpcResponse) -> WalletRpcResponse
Converts to this type from the input type.
Source§impl From<SolanaSignAndSendTransactionRpcResponse> for WalletRpcResponse
impl From<SolanaSignAndSendTransactionRpcResponse> for WalletRpcResponse
Source§fn from(value: SolanaSignAndSendTransactionRpcResponse) -> WalletRpcResponse
fn from(value: SolanaSignAndSendTransactionRpcResponse) -> WalletRpcResponse
Converts to this type from the input type.
Source§impl From<SolanaSignMessageRpcResponse> for WalletRpcResponse
impl From<SolanaSignMessageRpcResponse> for WalletRpcResponse
Source§fn from(value: SolanaSignMessageRpcResponse) -> WalletRpcResponse
fn from(value: SolanaSignMessageRpcResponse) -> WalletRpcResponse
Converts to this type from the input type.
Source§impl From<SolanaSignTransactionRpcResponse> for WalletRpcResponse
impl From<SolanaSignTransactionRpcResponse> for WalletRpcResponse
Source§fn from(value: SolanaSignTransactionRpcResponse) -> WalletRpcResponse
fn from(value: SolanaSignTransactionRpcResponse) -> WalletRpcResponse
Converts to this type from the input type.
Source§impl Serialize for WalletRpcResponse
impl Serialize for WalletRpcResponse
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 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