[][src]Trait solana_banks_client::BanksClientExt

pub trait BanksClientExt {
#[must_use]    pub fn send_transaction<'life0, 'async_trait>(
        &'life0 mut self,
        transaction: Transaction
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn get_recent_blockhash<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<Hash>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn get_fees<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<(FeeCalculator, Hash, Slot)>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn get_rent<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<Rent>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn process_transaction_with_commitment<'life0, 'async_trait>(
        &'life0 mut self,
        transaction: Transaction,
        commitment: CommitmentLevel
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn process_transaction<'life0, 'async_trait>(
        &'life0 mut self,
        transaction: Transaction
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn get_transaction_status<'life0, 'async_trait>(
        &'life0 mut self,
        signature: Signature
    ) -> Pin<Box<dyn Future<Output = Result<Option<TransactionStatus>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn get_transaction_statuses<'life0, 'async_trait>(
        &'life0 mut self,
        signatures: Vec<Signature>
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Option<TransactionStatus>>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn get_root_slot<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<Slot>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn get_account_with_commitment<'life0, 'async_trait>(
        &'life0 mut self,
        address: Pubkey,
        commitment: CommitmentLevel
    ) -> Pin<Box<dyn Future<Output = Result<Option<Account>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn get_account<'life0, 'async_trait>(
        &'life0 mut self,
        address: Pubkey
    ) -> Pin<Box<dyn Future<Output = Result<Option<Account>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn get_balance_with_commitment<'life0, 'async_trait>(
        &'life0 mut self,
        address: Pubkey,
        commitment: CommitmentLevel
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn get_balance<'life0, 'async_trait>(
        &'life0 mut self,
        address: Pubkey
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]pub fn send_transaction<'life0, 'async_trait>(
    &'life0 mut self,
    transaction: Transaction
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Send a transaction and return immediately. The server will resend the transaction until either it is accepted by the cluster or the transaction's blockhash expires.

#[must_use]pub fn get_recent_blockhash<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Hash>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Return a recent, rooted blockhash from the server. The cluster will only accept transactions with a blockhash that has not yet expired. Use the get_fees method to get both a blockhash and the blockhash's last valid slot.

#[must_use]pub fn get_fees<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(FeeCalculator, Hash, Slot)>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Return the fee parameters associated with a recent, rooted blockhash. The cluster will use the transaction's blockhash to look up these same fee parameters and use them to calculate the transaction fee.

#[must_use]pub fn get_rent<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Rent>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Return the cluster rent

#[must_use]pub fn process_transaction_with_commitment<'life0, 'async_trait>(
    &'life0 mut self,
    transaction: Transaction,
    commitment: CommitmentLevel
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Send a transaction and return after the transaction has been rejected or reached the given level of commitment.

#[must_use]pub fn process_transaction<'life0, 'async_trait>(
    &'life0 mut self,
    transaction: Transaction
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Send a transaction and return after the transaction has been finalized or rejected.

#[must_use]pub fn get_transaction_status<'life0, 'async_trait>(
    &'life0 mut self,
    signature: Signature
) -> Pin<Box<dyn Future<Output = Result<Option<TransactionStatus>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Return the status of a transaction with a signature matching the transaction's first signature. Return None if the transaction is not found, which may be because the blockhash was expired or the fee-paying account had insufficient funds to pay the transaction fee. Note that servers rarely store the full transaction history. This method may return None if the transaction status has been discarded.

#[must_use]pub fn get_transaction_statuses<'life0, 'async_trait>(
    &'life0 mut self,
    signatures: Vec<Signature>
) -> Pin<Box<dyn Future<Output = Result<Vec<Option<TransactionStatus>>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Same as get_transaction_status, but for multiple transactions.

#[must_use]pub fn get_root_slot<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Slot>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Return the most recent rooted slot height. All transactions at or below this height are said to be finalized. The cluster will not fork to a higher slot height.

#[must_use]pub fn get_account_with_commitment<'life0, 'async_trait>(
    &'life0 mut self,
    address: Pubkey,
    commitment: CommitmentLevel
) -> Pin<Box<dyn Future<Output = Result<Option<Account>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Return the account at the given address at the slot corresponding to the given commitment level. If the account is not found, None is returned.

#[must_use]pub fn get_account<'life0, 'async_trait>(
    &'life0 mut self,
    address: Pubkey
) -> Pin<Box<dyn Future<Output = Result<Option<Account>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Return the account at the given address at the time of the most recent root slot. If the account is not found, None is returned.

#[must_use]pub fn get_balance_with_commitment<'life0, 'async_trait>(
    &'life0 mut self,
    address: Pubkey,
    commitment: CommitmentLevel
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Return the balance in lamports of an account at the given address at the slot corresponding to the given commitment level.

#[must_use]pub fn get_balance<'life0, 'async_trait>(
    &'life0 mut self,
    address: Pubkey
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Return the balance in lamports of an account at the given address at the time of the most recent root slot.

Loading content...

Implementors

impl BanksClientExt for BanksClient[src]

Loading content...