pub struct SolanaSubscriptionPayload {
pub data: SolanaSubscriptionPayloadData,
pub payload_id: String,
pub type_: SolanaSubscriptionPayloadType,
}Expand description
An unsigned Solana transaction the payer must sign to approve or revoke a mandate on a Solana wallet source. Decode data.transaction from base64 and pass the bytes to the Solana Wallet Standard signTransaction method (never signAndSendTransaction). Do not submit the signed transaction bytes. From the signed transaction, take the 64-byte ed25519 signature for the payer that signed, base58-encode those 64 bytes, and return that string as OnchainSignedPayload.signature.
JSON schema
{
"title": "Solana Subscription Payload",
"description": "An unsigned Solana transaction the payer must sign to approve or revoke a mandate on a Solana wallet source. Decode `data.transaction` from base64 and pass the bytes to the Solana Wallet Standard `signTransaction` method (never `signAndSendTransaction`). Do not submit the signed transaction bytes. From the signed transaction, take the 64-byte ed25519 signature for the payer that signed, base58-encode those 64 bytes, and return that string as `OnchainSignedPayload.signature`.",
"examples": [
{
"data": {
"transaction": "AQABAgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAQECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8CBgMBAQAAAAIBAwQAAAAABgIAAAAAAAYDBQEBAAAGBAgAAAAABgUAAAAA6AMAAAAAAAAGBgUBAQEBBgcEAQAAAAYICgMBAQIDBgkCBgAAAAYKAwABAQEGCwMGAQEBBgwDAAABAQAAAAA="
},
"payloadId": "payload_7c18e4a2-9d53-4b61-8f20-1a6e9c0d4b87",
"type": "solana_subscription"
}
],
"type": "object",
"required": [
"data",
"payloadId",
"type"
],
"properties": {
"data": {
"$ref": "#/components/schemas/SolanaSubscriptionPayloadData"
},
"payloadId": {
"description": "The unique identifier of the payload.",
"examples": [
"payload_7c18e4a2-9d53-4b61-8f20-1a6e9c0d4b87"
],
"type": "string"
},
"type": {
"description": "The payload type.",
"examples": [
"solana_subscription"
],
"type": "string",
"enum": [
"solana_subscription"
]
}
}
}Fields§
§data: SolanaSubscriptionPayloadData§payload_id: StringThe unique identifier of the payload.
type_: SolanaSubscriptionPayloadTypeThe payload type.
Implementations§
Source§impl SolanaSubscriptionPayload
impl SolanaSubscriptionPayload
pub fn builder() -> SolanaSubscriptionPayload
Trait Implementations§
Source§impl Clone for SolanaSubscriptionPayload
impl Clone for SolanaSubscriptionPayload
Source§impl Debug for SolanaSubscriptionPayload
impl Debug for SolanaSubscriptionPayload
Source§impl<'de> Deserialize<'de> for SolanaSubscriptionPayload
impl<'de> Deserialize<'de> for SolanaSubscriptionPayload
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<&SolanaSubscriptionPayload> for SolanaSubscriptionPayload
impl From<&SolanaSubscriptionPayload> for SolanaSubscriptionPayload
Source§fn from(value: &SolanaSubscriptionPayload) -> Self
fn from(value: &SolanaSubscriptionPayload) -> Self
Converts to this type from the input type.
Source§impl From<SolanaSubscriptionPayload> for ApprovalPayload
impl From<SolanaSubscriptionPayload> for ApprovalPayload
Source§fn from(value: SolanaSubscriptionPayload) -> Self
fn from(value: SolanaSubscriptionPayload) -> Self
Converts to this type from the input type.
Source§impl From<SolanaSubscriptionPayload> for RevocationPayload
impl From<SolanaSubscriptionPayload> for RevocationPayload
Source§fn from(value: SolanaSubscriptionPayload) -> Self
fn from(value: SolanaSubscriptionPayload) -> Self
Converts to this type from the input type.
Source§impl From<SolanaSubscriptionPayload> for SolanaSubscriptionPayload
impl From<SolanaSubscriptionPayload> for SolanaSubscriptionPayload
Source§fn from(value: SolanaSubscriptionPayload) -> Self
fn from(value: SolanaSubscriptionPayload) -> Self
Converts to this type from the input type.
Source§impl TryFrom<SolanaSubscriptionPayload> for SolanaSubscriptionPayload
impl TryFrom<SolanaSubscriptionPayload> for SolanaSubscriptionPayload
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SolanaSubscriptionPayload) -> Result<Self, ConversionError>
fn try_from(value: SolanaSubscriptionPayload) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SolanaSubscriptionPayload
impl RefUnwindSafe for SolanaSubscriptionPayload
impl Send for SolanaSubscriptionPayload
impl Sync for SolanaSubscriptionPayload
impl Unpin for SolanaSubscriptionPayload
impl UnsafeUnpin for SolanaSubscriptionPayload
impl UnwindSafe for SolanaSubscriptionPayload
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