pub struct BanksClient { /* private fields */ }

Implementations

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.

Return the cluster clock

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.

Return the cluster Sysvar

Return the cluster rent

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.

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

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

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

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

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

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.

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.

Return the unpacked account data at the given address If the account is not found, an error is returned

Return the unpacked account data at the given address If the account is not found, an error is returned

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

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

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.

Same as get_transaction_status, but for multiple transactions.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Get a new blockhash, similar in spirit to RpcClient::get_new_blockhash()

This probably should eventually be moved into BanksClient proper in some form

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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