Struct solana_runtime::bank_client::BankClient [−][src]
pub struct BankClient { /* fields omitted */ }
Implementations
Trait Implementations
Transfer lamports
from keypair
to pubkey
Send a signed transaction, but don’t wait to see if the server accepted it.
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. Read more
fn send_and_confirm_instruction(
&self,
keypair: &Keypair,
instruction: Instruction
) -> Result<Signature>
fn send_and_confirm_instruction(
&self,
keypair: &Keypair,
instruction: Instruction
) -> Result<Signature>
Create and process a transaction from a single instruction.
Transfer lamports
from keypair
to pubkey
Create a transaction from the given message, and send it to the server, retrying as-needed. Read more
Get an account or None if not found.
Get an account or None if not found.
fn get_account_with_commitment(
&self,
pubkey: &Pubkey,
_commitment_config: CommitmentConfig
) -> Result<Option<Account>>
fn get_account_with_commitment(
&self,
pubkey: &Pubkey,
_commitment_config: CommitmentConfig
) -> Result<Option<Account>>
Get an account or None if not found. Uses explicit commitment configuration.
Get account balance or 0 if not found.
fn get_balance_with_commitment(
&self,
pubkey: &Pubkey,
_commitment_config: CommitmentConfig
) -> Result<u64>
fn get_balance_with_commitment(
&self,
pubkey: &Pubkey,
_commitment_config: CommitmentConfig
) -> Result<u64>
Get account balance or 0 if not found. Uses explicit commitment configuration.
Get recent blockhash
fn get_recent_blockhash_with_commitment(
&self,
_commitment_config: CommitmentConfig
) -> Result<(Hash, FeeCalculator, u64)>
fn get_recent_blockhash_with_commitment(
&self,
_commitment_config: CommitmentConfig
) -> Result<(Hash, FeeCalculator, u64)>
Get recent blockhash. Uses explicit commitment configuration.
Get Some(FeeCalculator)
associated with blockhash
if it is still in
the BlockhashQueue, otherwise
None` Read more
Get recent fee rate governor
Get signature status.
fn get_signature_status_with_commitment(
&self,
signature: &Signature,
_commitment_config: CommitmentConfig
) -> Result<Option<Result<()>>>
fn get_signature_status_with_commitment(
&self,
signature: &Signature,
_commitment_config: CommitmentConfig
) -> Result<Option<Result<()>>>
Get signature status. Uses explicit commitment configuration.
Get last known slot. Uses explicit commitment configuration.
Get transaction count
fn get_transaction_count_with_commitment(
&self,
_commitment_config: CommitmentConfig
) -> Result<u64>
fn get_transaction_count_with_commitment(
&self,
_commitment_config: CommitmentConfig
) -> Result<u64>
Get transaction count. Uses explicit commitment configuration.
Poll until the signature has been confirmed by at least min_confirmed_blocks
Poll to confirm a transaction.
Auto Trait Implementations
impl !RefUnwindSafe for BankClient
impl Send for BankClient
impl Sync for BankClient
impl Unpin for BankClient
impl !UnwindSafe for BankClient
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V