solana_client::rpc_client

Trait SerializableTransaction

Source
pub trait SerializableTransaction: Serialize {
    // Required methods
    fn get_signature(&self) -> &Signature;
    fn get_recent_blockhash(&self) -> &Hash;
    fn uses_durable_nonce(&self) -> bool;
}
Expand description

Trait used to add support for versioned transactions to RPC APIs while retaining backwards compatibility

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SerializableTransaction for Transaction

Source§

impl SerializableTransaction for VersionedTransaction

Implementors§