solana_rpc_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§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl SerializableTransaction for Transaction

source§

impl SerializableTransaction for VersionedTransaction

Implementors§