Trait solana_sdk::client::AsyncClient

source ·
pub trait AsyncClient {
    // Required method
    fn async_send_versioned_transaction(
        &self,
        transaction: VersionedTransaction
    ) -> Result<Signature>;

    // Provided methods
    fn async_send_transaction(
        &self,
        transaction: Transaction
    ) -> Result<Signature> { ... }
    fn async_send_batch(&self, transactions: Vec<Transaction>) -> Result<()> { ... }
    fn async_send_versioned_transaction_batch(
        &self,
        transactions: Vec<VersionedTransaction>
    ) -> Result<()> { ... }
    fn async_send_message<T: Signers + ?Sized>(
        &self,
        keypairs: &T,
        message: Message,
        recent_blockhash: Hash
    ) -> Result<Signature> { ... }
    fn async_send_instruction(
        &self,
        keypair: &Keypair,
        instruction: Instruction,
        recent_blockhash: Hash
    ) -> Result<Signature> { ... }
    fn async_transfer(
        &self,
        lamports: u64,
        keypair: &Keypair,
        pubkey: &Pubkey,
        recent_blockhash: Hash
    ) -> Result<Signature> { ... }
}

Required Methods§

source

fn async_send_versioned_transaction( &self, transaction: VersionedTransaction ) -> Result<Signature>

Send a signed versioned transaction, but don’t wait to see if the server accepted it.

Provided Methods§

source

fn async_send_transaction(&self, transaction: Transaction) -> Result<Signature>

Send a signed transaction, but don’t wait to see if the server accepted it.

source

fn async_send_batch(&self, transactions: Vec<Transaction>) -> Result<()>

Send a batch of signed transactions without confirmation.

source

fn async_send_versioned_transaction_batch( &self, transactions: Vec<VersionedTransaction> ) -> Result<()>

Send a batch of signed versioned transactions without confirmation.

source

fn async_send_message<T: Signers + ?Sized>( &self, keypairs: &T, message: Message, recent_blockhash: Hash ) -> Result<Signature>

Create a transaction from the given message, and send it to the server, but don’t wait for to see if the server accepted it.

source

fn async_send_instruction( &self, keypair: &Keypair, instruction: Instruction, recent_blockhash: Hash ) -> Result<Signature>

Create a transaction from a single instruction that only requires a single signer. Then send it to the server, but don’t wait for a reply.

source

fn async_transfer( &self, lamports: u64, keypair: &Keypair, pubkey: &Pubkey, recent_blockhash: Hash ) -> Result<Signature>

Attempt to transfer lamports from keypair to pubkey, but don’t wait to confirm.

Object Safety§

This trait is not object safe.

Implementors§