pub trait AsyncClient {
    // Required methods
    fn async_send_transaction(
        &self,
        transaction: Transaction
    ) -> Result<Signature>;
    fn async_send_batch(&self, transactions: Vec<Transaction>) -> Result<()>;
    fn async_send_message<T: Signers>(
        &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_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<()>

source

fn async_send_message<T: Signers>( &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.

Implementors§