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.
Please use get_latest_blockhash
instead
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)>
Please use get_latest_blockhash_with_commitment
and get_latest_blockhash_with_commitment
instead
Get recent blockhash. Uses explicit commitment configuration.
Please use get_fee_for_message
or is_blockhash_valid
instead
Get Some(FeeCalculator)
associated with blockhash
if it is still in
the BlockhashQueue, otherwise
None` Read more
Please do not use, will no longer be available in the future
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.
Please do not use, will no longer be available in the future
Get last known blockhash
fn get_latest_blockhash_with_commitment(
&self,
_commitment_config: CommitmentConfig
) -> Result<(Hash, u64)>
fn get_latest_blockhash_with_commitment(
&self,
_commitment_config: CommitmentConfig
) -> Result<(Hash, u64)>
Get latest blockhash with last valid block height. Uses explicit commitment configuration.
fn is_blockhash_valid(
&self,
blockhash: &Hash,
_commitment_config: CommitmentConfig
) -> Result<bool>
fn is_blockhash_valid(
&self,
blockhash: &Hash,
_commitment_config: CommitmentConfig
) -> Result<bool>
Check if the blockhash is valid
Calculate the fee for a Message
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
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more