[−][src]Struct solana_runtime::bank_client::BankClient
Implementations
impl BankClient
[src]
Trait Implementations
impl AsyncClient for BankClient
[src]
pub fn async_send_transaction(
&self,
transaction: Transaction
) -> Result<Signature>
[src]
&self,
transaction: Transaction
) -> Result<Signature>
pub fn async_send_message<T: Signers>(
&self,
keypairs: &T,
message: Message,
recent_blockhash: Hash
) -> Result<Signature>
[src]
&self,
keypairs: &T,
message: Message,
recent_blockhash: Hash
) -> Result<Signature>
pub fn async_send_instruction(
&self,
keypair: &Keypair,
instruction: Instruction,
recent_blockhash: Hash
) -> Result<Signature>
[src]
&self,
keypair: &Keypair,
instruction: Instruction,
recent_blockhash: Hash
) -> Result<Signature>
pub fn async_transfer(
&self,
lamports: u64,
keypair: &Keypair,
pubkey: &Pubkey,
recent_blockhash: Hash
) -> Result<Signature>
[src]
&self,
lamports: u64,
keypair: &Keypair,
pubkey: &Pubkey,
recent_blockhash: Hash
) -> Result<Signature>
Transfer lamports
from keypair
to pubkey
impl Client for BankClient
[src]
impl SyncClient for BankClient
[src]
pub fn send_and_confirm_message<T: Signers>(
&self,
keypairs: &T,
message: Message
) -> Result<Signature>
[src]
&self,
keypairs: &T,
message: Message
) -> Result<Signature>
pub fn send_and_confirm_instruction(
&self,
keypair: &Keypair,
instruction: Instruction
) -> Result<Signature>
[src]
&self,
keypair: &Keypair,
instruction: Instruction
) -> Result<Signature>
Create and process a transaction from a single instruction.
pub fn transfer_and_confirm(
&self,
lamports: u64,
keypair: &Keypair,
pubkey: &Pubkey
) -> Result<Signature>
[src]
&self,
lamports: u64,
keypair: &Keypair,
pubkey: &Pubkey
) -> Result<Signature>
Transfer lamports
from keypair
to pubkey
pub fn get_account_data(&self, pubkey: &Pubkey) -> Result<Option<Vec<u8>>>
[src]
pub fn get_account(&self, pubkey: &Pubkey) -> Result<Option<Account>>
[src]
pub fn get_account_with_commitment(
&self,
pubkey: &Pubkey,
_commitment_config: CommitmentConfig
) -> Result<Option<Account>>
[src]
&self,
pubkey: &Pubkey,
_commitment_config: CommitmentConfig
) -> Result<Option<Account>>
pub fn get_balance(&self, pubkey: &Pubkey) -> Result<u64>
[src]
pub fn get_balance_with_commitment(
&self,
pubkey: &Pubkey,
_commitment_config: CommitmentConfig
) -> Result<u64>
[src]
&self,
pubkey: &Pubkey,
_commitment_config: CommitmentConfig
) -> Result<u64>
pub fn get_minimum_balance_for_rent_exemption(
&self,
data_len: usize
) -> Result<u64>
[src]
&self,
data_len: usize
) -> Result<u64>
pub fn get_recent_blockhash(&self) -> Result<(Hash, FeeCalculator)>
[src]
pub fn get_recent_blockhash_with_commitment(
&self,
_commitment_config: CommitmentConfig
) -> Result<(Hash, FeeCalculator, u64)>
[src]
&self,
_commitment_config: CommitmentConfig
) -> Result<(Hash, FeeCalculator, u64)>
pub fn get_fee_calculator_for_blockhash(
&self,
blockhash: &Hash
) -> Result<Option<FeeCalculator>>
[src]
&self,
blockhash: &Hash
) -> Result<Option<FeeCalculator>>
pub fn get_fee_rate_governor(&self) -> Result<FeeRateGovernor>
[src]
pub fn get_signature_status(
&self,
signature: &Signature
) -> Result<Option<Result<()>>>
[src]
&self,
signature: &Signature
) -> Result<Option<Result<()>>>
pub fn get_signature_status_with_commitment(
&self,
signature: &Signature,
_commitment_config: CommitmentConfig
) -> Result<Option<Result<()>>>
[src]
&self,
signature: &Signature,
_commitment_config: CommitmentConfig
) -> Result<Option<Result<()>>>
pub fn get_slot(&self) -> Result<u64>
[src]
pub fn get_slot_with_commitment(
&self,
_commitment_config: CommitmentConfig
) -> Result<u64>
[src]
&self,
_commitment_config: CommitmentConfig
) -> Result<u64>
pub fn get_transaction_count(&self) -> Result<u64>
[src]
pub fn get_transaction_count_with_commitment(
&self,
_commitment_config: CommitmentConfig
) -> Result<u64>
[src]
&self,
_commitment_config: CommitmentConfig
) -> Result<u64>
pub fn poll_for_signature_confirmation(
&self,
signature: &Signature,
min_confirmed_blocks: usize
) -> Result<usize>
[src]
&self,
signature: &Signature,
min_confirmed_blocks: usize
) -> Result<usize>
pub fn poll_for_signature(&self, signature: &Signature) -> Result<()>
[src]
pub fn get_new_blockhash(
&self,
blockhash: &Hash
) -> Result<(Hash, FeeCalculator)>
[src]
&self,
blockhash: &Hash
) -> Result<(Hash, FeeCalculator)>
pub fn get_epoch_info(&self) -> Result<EpochInfo>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for BankClient
[src]
impl Send for BankClient
[src]
impl Sync for BankClient
[src]
impl Unpin for BankClient
[src]
impl !UnwindSafe for BankClient
[src]
Blanket Implementations
impl<T> AbiExample for T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,