[−][src]Trait solana_sdk::client::SyncClient
Required methods
fn send_message(
&self,
keypairs: &[&Keypair],
message: Message
) -> Result<Signature>
&self,
keypairs: &[&Keypair],
message: Message
) -> Result<Signature>
Create a transaction from the given message, and send it to the server, retrying as-needed.
fn send_instruction(
&self,
keypair: &Keypair,
instruction: Instruction
) -> Result<Signature>
&self,
keypair: &Keypair,
instruction: Instruction
) -> Result<Signature>
Create a transaction from a single instruction that only requires a single signer. Then send it to the server, retrying as-needed.
fn transfer(
&self,
lamports: u64,
keypair: &Keypair,
pubkey: &Pubkey
) -> Result<Signature>
&self,
lamports: u64,
keypair: &Keypair,
pubkey: &Pubkey
) -> Result<Signature>
Transfer lamports from keypair
to pubkey
, retrying until the
transfer completes or produces and error.
fn get_account_data(&self, pubkey: &Pubkey) -> Result<Option<Vec<u8>>>
Get an account or None if not found.
fn get_account(&self, pubkey: &Pubkey) -> Result<Option<Account>>
Get an account or None if not found.
fn get_balance(&self, pubkey: &Pubkey) -> Result<u64>
Get account balance or 0 if not found.
fn get_recent_blockhash(&self) -> Result<(Hash, FeeCalculator)>
Get recent blockhash
fn get_signature_status(
&self,
signature: &Signature
) -> Result<Option<Result<()>>>
&self,
signature: &Signature
) -> Result<Option<Result<()>>>
Get signature status.
fn get_slot(&self) -> Result<u64>
Get last known slot
fn get_transaction_count(&self) -> Result<u64>
Get transaction count
fn poll_for_signature_confirmation(
&self,
signature: &Signature,
min_confirmed_blocks: usize
) -> Result<()>
&self,
signature: &Signature,
min_confirmed_blocks: usize
) -> Result<()>
Poll until the signature has been confirmed by at least min_confirmed_blocks
fn poll_for_signature(&self, signature: &Signature) -> Result<()>
Poll to confirm a transaction.