[][src]Trait solana_sdk::client::AsyncClient

pub trait AsyncClient {
    fn async_send_transaction(
        &self,
        transaction: Transaction
    ) -> Result<Signature>;
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

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

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

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.

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.

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.

Loading content...

Implementors

Loading content...