[][src]Struct solana_banks_client::BanksClient

pub struct BanksClient { /* fields omitted */ }

Implementations

impl BanksClient[src]

pub fn new<C>(
    config: Config,
    transport: C
) -> NewClient<TarpcClient, RequestDispatch<BanksRequest, BanksResponse, C>> where
    C: Transport<ClientMessage<BanksRequest>, Response<BanksResponse>>, 
[src]

pub fn send_transaction_with_context(
    &mut self,
    ctx: Context,
    transaction: Transaction
) -> impl Future<Output = Result<()>> + '_
[src]

pub fn get_fees_with_commitment_and_context(
    &mut self,
    ctx: Context,
    commitment: CommitmentLevel
) -> impl Future<Output = Result<(FeeCalculator, Hash, Slot)>> + '_
[src]

pub fn get_transaction_status_with_context(
    &mut self,
    ctx: Context,
    signature: Signature
) -> impl Future<Output = Result<Option<TransactionStatus>>> + '_
[src]

pub fn get_slot_with_context(
    &mut self,
    ctx: Context,
    commitment: CommitmentLevel
) -> impl Future<Output = Result<Slot>> + '_
[src]

pub fn process_transaction_with_commitment_and_context(
    &mut self,
    ctx: Context,
    transaction: Transaction,
    commitment: CommitmentLevel
) -> impl Future<Output = Result<Option<Result<()>>>> + '_
[src]

pub fn get_account_with_commitment_and_context(
    &mut self,
    ctx: Context,
    address: Pubkey,
    commitment: CommitmentLevel
) -> impl Future<Output = Result<Option<Account>>> + '_
[src]

pub fn send_transaction(
    &mut self,
    transaction: Transaction
) -> impl Future<Output = Result<()>> + '_
[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.

pub fn get_fees(
    &mut self
) -> impl Future<Output = Result<(FeeCalculator, Hash, Slot)>> + '_
[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.

pub fn get_rent(&mut self) -> impl Future<Output = Result<Rent>> + '_[src]

Return the cluster rent

pub fn get_recent_blockhash(
    &mut self
) -> impl Future<Output = Result<Hash>> + '_
[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.

pub fn process_transaction_with_commitment(
    &mut self,
    transaction: Transaction,
    commitment: CommitmentLevel
) -> impl Future<Output = Result<()>> + '_
[src]

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

pub fn process_transaction(
    &mut self,
    transaction: Transaction
) -> impl Future<Output = Result<()>> + '_
[src]

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

pub async fn process_transactions_with_commitment(
    &mut self,
    transactions: Vec<Transaction>,
    commitment: CommitmentLevel
) -> Result<()>
[src]

pub fn process_transactions(
    &mut self,
    transactions: Vec<Transaction>
) -> impl Future<Output = Result<()>> + '_
[src]

Send transactions and return until the transaction has been finalized or rejected.

pub fn get_root_slot(&mut self) -> impl Future<Output = Result<Slot>> + '_[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.

pub fn get_account_with_commitment(
    &mut self,
    address: Pubkey,
    commitment: CommitmentLevel
) -> impl Future<Output = Result<Option<Account>>> + '_
[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.

pub fn get_account(
    &mut self,
    address: Pubkey
) -> impl Future<Output = Result<Option<Account>>> + '_
[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.

pub fn get_balance_with_commitment(
    &mut self,
    address: Pubkey,
    commitment: CommitmentLevel
) -> impl Future<Output = Result<u64>> + '_
[src]

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

pub fn get_balance(
    &mut self,
    address: Pubkey
) -> impl Future<Output = Result<u64>> + '_
[src]

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

pub fn get_transaction_status(
    &mut self,
    signature: Signature
) -> impl Future<Output = Result<Option<TransactionStatus>>> + '_
[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.

pub async fn get_transaction_statuses(
    &mut self,
    signatures: Vec<Signature>
) -> Result<Vec<Option<TransactionStatus>>>
[src]

Same as get_transaction_status, but for multiple transactions.

Trait Implementations

impl Clone for BanksClient[src]

Auto Trait Implementations

Blanket Implementations

impl<T> AbiExample for T

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,