pub struct SignSolanaTransactionBody {
pub network: Option<SignSolanaTransactionBodyNetwork>,
pub transaction: String,
}Expand description
SignSolanaTransactionBody
JSON schema
{
"type": "object",
"required": [
"transaction"
],
"properties": {
"network": {
"description": "The Solana network the transaction targets. Required when using versioned transactions that reference address lookup tables, since resolving those tables requires querying a specific network. Optional otherwise.",
"examples": [
"solana-devnet"
],
"type": "string",
"enum": [
"solana",
"solana-devnet"
]
},
"transaction": {
"description": "The base64 encoded transaction to sign.",
"examples": [
"AQABAgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAQECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8CBgMBAQAAAAIBAwQAAAAABgIAAAAAAAYDBQEBAAAGBAgAAAAABgUAAAAA6AMAAAAAAAAGBgUBAQEBBgcEAQAAAAYICgMBAQIDBgkCBgAAAAYKAwABAQEGCwMGAQEBBgwDAAABAQAAAAA="
],
"type": "string"
}
}
}Fields§
§network: Option<SignSolanaTransactionBodyNetwork>The Solana network the transaction targets. Required when using versioned transactions that reference address lookup tables, since resolving those tables requires querying a specific network. Optional otherwise.
transaction: StringThe base64 encoded transaction to sign.
Implementations§
Source§impl SignSolanaTransactionBody
impl SignSolanaTransactionBody
pub fn builder() -> SignSolanaTransactionBody
Trait Implementations§
Source§impl Clone for SignSolanaTransactionBody
impl Clone for SignSolanaTransactionBody
Source§impl Debug for SignSolanaTransactionBody
impl Debug for SignSolanaTransactionBody
Source§impl<'de> Deserialize<'de> for SignSolanaTransactionBody
impl<'de> Deserialize<'de> for SignSolanaTransactionBody
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<&SignSolanaTransactionBody> for SignSolanaTransactionBody
impl From<&SignSolanaTransactionBody> for SignSolanaTransactionBody
Source§fn from(value: &SignSolanaTransactionBody) -> Self
fn from(value: &SignSolanaTransactionBody) -> Self
Converts to this type from the input type.
Source§impl From<SignSolanaTransactionBody> for SignSolanaTransactionBody
impl From<SignSolanaTransactionBody> for SignSolanaTransactionBody
Source§fn from(value: SignSolanaTransactionBody) -> Self
fn from(value: SignSolanaTransactionBody) -> Self
Converts to this type from the input type.
Source§impl TryFrom<SignSolanaTransactionBody> for SignSolanaTransactionBody
impl TryFrom<SignSolanaTransactionBody> for SignSolanaTransactionBody
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SignSolanaTransactionBody) -> Result<Self, ConversionError>
fn try_from(value: SignSolanaTransactionBody) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SignSolanaTransactionBody
impl RefUnwindSafe for SignSolanaTransactionBody
impl Send for SignSolanaTransactionBody
impl Sync for SignSolanaTransactionBody
impl Unpin for SignSolanaTransactionBody
impl UnsafeUnpin for SignSolanaTransactionBody
impl UnwindSafe for SignSolanaTransactionBody
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