Skip to main content

WalletRpcResponse

Enum WalletRpcResponse 

Source
pub enum WalletRpcResponse {
Show 22 variants EthereumPersonalSignRpcResponse(EthereumPersonalSignRpcResponse), EthereumSignTypedDataRpcResponse(EthereumSignTypedDataRpcResponse), EthereumSignTransactionRpcResponse(EthereumSignTransactionRpcResponse), EthereumSendTransactionRpcResponse(EthereumSendTransactionRpcResponse), EthereumSignUserOperationRpcResponse(EthereumSignUserOperationRpcResponse), EthereumSign7702AuthorizationRpcResponse(EthereumSign7702AuthorizationRpcResponse), EthereumSecp256k1SignRpcResponse(EthereumSecp256k1SignRpcResponse), EthereumSendCallsRpcResponse(EthereumSendCallsRpcResponse), SolanaSignMessageRpcResponse(SolanaSignMessageRpcResponse), SolanaSignTransactionRpcResponse(SolanaSignTransactionRpcResponse), SolanaSignAndSendTransactionRpcResponse(SolanaSignAndSendTransactionRpcResponse), SparkTransferRpcResponse(SparkTransferRpcResponse), SparkGetBalanceRpcResponse(SparkGetBalanceRpcResponse), SparkTransferTokensRpcResponse(SparkTransferTokensRpcResponse), SparkGetStaticDepositAddressRpcResponse(SparkGetStaticDepositAddressRpcResponse), SparkGetClaimStaticDepositQuoteRpcResponse(SparkGetClaimStaticDepositQuoteRpcResponse), SparkClaimStaticDepositRpcResponse(SparkClaimStaticDepositRpcResponse), SparkCreateLightningInvoiceRpcResponse(SparkCreateLightningInvoiceRpcResponse), SparkPayLightningInvoiceRpcResponse(SparkPayLightningInvoiceRpcResponse), SparkSignMessageWithIdentityKeyRpcResponse(SparkSignMessageWithIdentityKeyRpcResponse), ExportPrivateKeyRpcResponse(ExportPrivateKeyRpcResponse), ExportSeedPhraseRpcResponse(ExportSeedPhraseRpcResponse),
}
Expand description

Response body for wallet RPC operations, discriminated by method.

JSON schema
{
 "title": "WalletRpcResponse",
 "description": "Response body for wallet RPC operations, discriminated
by method.",
 "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/EthereumPersonalSignRpcResponse"
   },
   {
     "$ref": "#/components/schemas/EthereumSignTypedDataRpcResponse"
   },
   {
     "$ref": "#/components/schemas/EthereumSignTransactionRpcResponse"
   },
   {
     "$ref": "#/components/schemas/EthereumSendTransactionRpcResponse"
   },
   {
     "$ref": "#/components/schemas/EthereumSignUserOperationRpcResponse"
   },
   {
     "$ref":
"#/components/schemas/EthereumSign7702AuthorizationRpcResponse"
   },
   {
     "$ref": "#/components/schemas/EthereumSecp256k1SignRpcResponse"
   },
   {
     "$ref": "#/components/schemas/EthereumSendCallsRpcResponse"
   },
   {
     "$ref": "#/components/schemas/SolanaSignMessageRpcResponse"
   },
   {
     "$ref": "#/components/schemas/SolanaSignTransactionRpcResponse"
   },
   {
     "$ref":
"#/components/schemas/SolanaSignAndSendTransactionRpcResponse"
   },
   {
     "$ref": "#/components/schemas/SparkTransferRpcResponse"
   },
   {
     "$ref": "#/components/schemas/SparkGetBalanceRpcResponse"
   },
   {
     "$ref": "#/components/schemas/SparkTransferTokensRpcResponse"
   },
   {
     "$ref":
"#/components/schemas/SparkGetStaticDepositAddressRpcResponse"
   },
   {
     "$ref":
"#/components/schemas/SparkGetClaimStaticDepositQuoteRpcResponse"
   },
   {
     "$ref": "#/components/schemas/SparkClaimStaticDepositRpcResponse"
   },
   {
     "$ref":
"#/components/schemas/SparkCreateLightningInvoiceRpcResponse"
   },
   {
     "$ref": "#/components/schemas/SparkPayLightningInvoiceRpcResponse"
   },
   {
     "$ref":
"#/components/schemas/SparkSignMessageWithIdentityKeyRpcResponse"
   },
   {
     "$ref": "#/components/schemas/ExportPrivateKeyRpcResponse"
   },
   {
     "$ref": "#/components/schemas/ExportSeedPhraseRpcResponse"
   }
 ],
 "x-stainless-model": "wallets.wallet_rpc_response"
}

Variants§

§

EthereumPersonalSignRpcResponse(EthereumPersonalSignRpcResponse)

§

EthereumSignTypedDataRpcResponse(EthereumSignTypedDataRpcResponse)

§

EthereumSignTransactionRpcResponse(EthereumSignTransactionRpcResponse)

§

EthereumSendTransactionRpcResponse(EthereumSendTransactionRpcResponse)

§

EthereumSignUserOperationRpcResponse(EthereumSignUserOperationRpcResponse)

§

EthereumSign7702AuthorizationRpcResponse(EthereumSign7702AuthorizationRpcResponse)

§

EthereumSecp256k1SignRpcResponse(EthereumSecp256k1SignRpcResponse)

§

EthereumSendCallsRpcResponse(EthereumSendCallsRpcResponse)

§

SolanaSignMessageRpcResponse(SolanaSignMessageRpcResponse)

§

SolanaSignTransactionRpcResponse(SolanaSignTransactionRpcResponse)

§

SolanaSignAndSendTransactionRpcResponse(SolanaSignAndSendTransactionRpcResponse)

§

SparkTransferRpcResponse(SparkTransferRpcResponse)

§

SparkGetBalanceRpcResponse(SparkGetBalanceRpcResponse)

§

SparkTransferTokensRpcResponse(SparkTransferTokensRpcResponse)

§

SparkGetStaticDepositAddressRpcResponse(SparkGetStaticDepositAddressRpcResponse)

§

SparkGetClaimStaticDepositQuoteRpcResponse(SparkGetClaimStaticDepositQuoteRpcResponse)

§

SparkClaimStaticDepositRpcResponse(SparkClaimStaticDepositRpcResponse)

§

SparkCreateLightningInvoiceRpcResponse(SparkCreateLightningInvoiceRpcResponse)

§

SparkPayLightningInvoiceRpcResponse(SparkPayLightningInvoiceRpcResponse)

§

SparkSignMessageWithIdentityKeyRpcResponse(SparkSignMessageWithIdentityKeyRpcResponse)

§

ExportPrivateKeyRpcResponse(ExportPrivateKeyRpcResponse)

§

ExportSeedPhraseRpcResponse(ExportSeedPhraseRpcResponse)

Trait Implementations§

Source§

impl Clone for WalletRpcResponse

Source§

fn clone(&self) -> WalletRpcResponse

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WalletRpcResponse

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for WalletRpcResponse

Source§

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

Source§

fn from(value: &WalletRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<EthereumPersonalSignRpcResponse> for WalletRpcResponse

Source§

fn from(value: EthereumPersonalSignRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<EthereumSecp256k1SignRpcResponse> for WalletRpcResponse

Source§

fn from(value: EthereumSecp256k1SignRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<EthereumSendCallsRpcResponse> for WalletRpcResponse

Source§

fn from(value: EthereumSendCallsRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<EthereumSendTransactionRpcResponse> for WalletRpcResponse

Source§

fn from(value: EthereumSendTransactionRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<EthereumSign7702AuthorizationRpcResponse> for WalletRpcResponse

Source§

fn from(value: EthereumSign7702AuthorizationRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<EthereumSignTransactionRpcResponse> for WalletRpcResponse

Source§

fn from(value: EthereumSignTransactionRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<EthereumSignTypedDataRpcResponse> for WalletRpcResponse

Source§

fn from(value: EthereumSignTypedDataRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<EthereumSignUserOperationRpcResponse> for WalletRpcResponse

Source§

fn from(value: EthereumSignUserOperationRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<ExportPrivateKeyRpcResponse> for WalletRpcResponse

Source§

fn from(value: ExportPrivateKeyRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<ExportSeedPhraseRpcResponse> for WalletRpcResponse

Source§

fn from(value: ExportSeedPhraseRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<SolanaSignAndSendTransactionRpcResponse> for WalletRpcResponse

Source§

fn from(value: SolanaSignAndSendTransactionRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<SolanaSignMessageRpcResponse> for WalletRpcResponse

Source§

fn from(value: SolanaSignMessageRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<SolanaSignTransactionRpcResponse> for WalletRpcResponse

Source§

fn from(value: SolanaSignTransactionRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<SparkClaimStaticDepositRpcResponse> for WalletRpcResponse

Source§

fn from(value: SparkClaimStaticDepositRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<SparkCreateLightningInvoiceRpcResponse> for WalletRpcResponse

Source§

fn from(value: SparkCreateLightningInvoiceRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<SparkGetBalanceRpcResponse> for WalletRpcResponse

Source§

fn from(value: SparkGetBalanceRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<SparkGetClaimStaticDepositQuoteRpcResponse> for WalletRpcResponse

Source§

fn from(value: SparkGetClaimStaticDepositQuoteRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<SparkGetStaticDepositAddressRpcResponse> for WalletRpcResponse

Source§

fn from(value: SparkGetStaticDepositAddressRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<SparkPayLightningInvoiceRpcResponse> for WalletRpcResponse

Source§

fn from(value: SparkPayLightningInvoiceRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<SparkSignMessageWithIdentityKeyRpcResponse> for WalletRpcResponse

Source§

fn from(value: SparkSignMessageWithIdentityKeyRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<SparkTransferRpcResponse> for WalletRpcResponse

Source§

fn from(value: SparkTransferRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl From<SparkTransferTokensRpcResponse> for WalletRpcResponse

Source§

fn from(value: SparkTransferTokensRpcResponse) -> Self

Converts to this type from the input type.
Source§

impl Serialize for WalletRpcResponse

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more