pub struct SolanaSubscriptionPayloadData {
pub transaction: String,
}Expand description
The unsigned Solana transaction the payer signs to approve or revoke a mandate on a Solana wallet source. Decode transaction and pass it to the Solana Wallet Standard signTransaction method. Submit only the extracted per-signer signature, not the signed transaction.
JSON schema
{
"title": "Solana Subscription Payload Data",
"description": "The unsigned Solana transaction the payer signs to approve or revoke a mandate on a Solana wallet source. Decode `transaction` and pass it to the Solana Wallet Standard `signTransaction` method. Submit only the extracted per-signer signature, not the signed transaction.",
"examples": [
{
"transaction": "AQABAgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAQECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8CBgMBAQAAAAIBAwQAAAAABgIAAAAAAAYDBQEBAAAGBAgAAAAABgUAAAAA6AMAAAAAAAAGBgUBAQEBBgcEAQAAAAYICgMBAQIDBgkCBgAAAAYKAwABAQEGCwMGAQEBBgwDAAABAQAAAAA="
}
],
"type": "object",
"required": [
"transaction"
],
"properties": {
"transaction": {
"description": "The unsigned Solana transaction, serialized to bytes and encoded as base64. Pass the decoded bytes to the Solana Wallet Standard `signTransaction` method. Do not POST this field (or the signed transaction bytes) as `OnchainSignedPayload.signature`.",
"examples": [
"AQABAgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAQECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8CBgMBAQAAAAIBAwQAAAAABgIAAAAAAAYDBQEBAAAGBAgAAAAABgUAAAAA6AMAAAAAAAAGBgUBAQEBBgcEAQAAAAYICgMBAQIDBgkCBgAAAAYKAwABAQEGCwMGAQEBBgwDAAABAQAAAAA="
],
"type": "string",
"format": "byte"
}
}
}Fields§
§transaction: StringThe unsigned Solana transaction, serialized to bytes and encoded as base64. Pass the decoded bytes to the Solana Wallet Standard signTransaction method. Do not POST this field (or the signed transaction bytes) as OnchainSignedPayload.signature.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SolanaSubscriptionPayloadData
impl<'de> Deserialize<'de> for SolanaSubscriptionPayloadData
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<&SolanaSubscriptionPayloadData> for SolanaSubscriptionPayloadData
impl From<&SolanaSubscriptionPayloadData> for SolanaSubscriptionPayloadData
Source§fn from(value: &SolanaSubscriptionPayloadData) -> Self
fn from(value: &SolanaSubscriptionPayloadData) -> Self
Converts to this type from the input type.
Source§impl From<SolanaSubscriptionPayloadData> for SolanaSubscriptionPayloadData
impl From<SolanaSubscriptionPayloadData> for SolanaSubscriptionPayloadData
Source§fn from(value: SolanaSubscriptionPayloadData) -> Self
fn from(value: SolanaSubscriptionPayloadData) -> Self
Converts to this type from the input type.
Source§impl TryFrom<SolanaSubscriptionPayloadData> for SolanaSubscriptionPayloadData
impl TryFrom<SolanaSubscriptionPayloadData> for SolanaSubscriptionPayloadData
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: SolanaSubscriptionPayloadData,
) -> Result<Self, ConversionError>
fn try_from( value: SolanaSubscriptionPayloadData, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SolanaSubscriptionPayloadData
impl RefUnwindSafe for SolanaSubscriptionPayloadData
impl Send for SolanaSubscriptionPayloadData
impl Sync for SolanaSubscriptionPayloadData
impl Unpin for SolanaSubscriptionPayloadData
impl UnsafeUnpin for SolanaSubscriptionPayloadData
impl UnwindSafe for SolanaSubscriptionPayloadData
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