Struct solana_banks_client::BanksClient [−][src]
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]
config: Config,
transport: C
) -> NewClient<TarpcClient, RequestDispatch<BanksRequest, BanksResponse, C>> where
C: Transport<ClientMessage<BanksRequest>, Response<BanksResponse>>,
pub fn send_transaction_with_context(
&mut self,
ctx: Context,
transaction: Transaction
) -> impl Future<Output = Result<()>> + '_
[src]
&mut self,
ctx: Context,
transaction: Transaction
) -> impl Future<Output = Result<()>> + '_
pub fn get_fees_with_commitment_and_context(
&mut self,
ctx: Context,
commitment: CommitmentLevel
) -> impl Future<Output = Result<(FeeCalculator, Hash, Slot)>> + '_
[src]
&mut self,
ctx: Context,
commitment: CommitmentLevel
) -> impl Future<Output = Result<(FeeCalculator, Hash, Slot)>> + '_
pub fn get_transaction_status_with_context(
&mut self,
ctx: Context,
signature: Signature
) -> impl Future<Output = Result<Option<TransactionStatus>>> + '_
[src]
&mut self,
ctx: Context,
signature: Signature
) -> impl Future<Output = Result<Option<TransactionStatus>>> + '_
pub fn get_slot_with_context(
&mut self,
ctx: Context,
commitment: CommitmentLevel
) -> impl Future<Output = Result<Slot>> + '_
[src]
&mut self,
ctx: Context,
commitment: CommitmentLevel
) -> impl Future<Output = Result<Slot>> + '_
pub fn process_transaction_with_commitment_and_context(
&mut self,
ctx: Context,
transaction: Transaction,
commitment: CommitmentLevel
) -> impl Future<Output = Result<Option<Result<()>>>> + '_
[src]
&mut self,
ctx: Context,
transaction: Transaction,
commitment: CommitmentLevel
) -> impl Future<Output = Result<Option<Result<()>>>> + '_
pub fn get_account_with_commitment_and_context(
&mut self,
ctx: Context,
address: Pubkey,
commitment: CommitmentLevel
) -> impl Future<Output = Result<Option<Account>>> + '_
[src]
&mut self,
ctx: Context,
address: Pubkey,
commitment: CommitmentLevel
) -> impl Future<Output = Result<Option<Account>>> + '_
pub fn send_transaction(
&mut self,
transaction: Transaction
) -> impl Future<Output = Result<()>> + '_
[src]
&mut self,
transaction: Transaction
) -> impl Future<Output = Result<()>> + '_
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]
&mut self
) -> impl Future<Output = Result<(FeeCalculator, Hash, Slot)>> + '_
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]
&mut self
) -> impl Future<Output = Result<Hash>> + '_
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]
&mut self,
transaction: Transaction,
commitment: CommitmentLevel
) -> impl Future<Output = Result<()>> + '_
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]
&mut self,
transaction: Transaction
) -> impl Future<Output = Result<()>> + '_
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]
&mut self,
transactions: Vec<Transaction>,
commitment: CommitmentLevel
) -> Result<()>
pub fn process_transactions(
&mut self,
transactions: Vec<Transaction>
) -> impl Future<Output = Result<()>> + '_
[src]
&mut self,
transactions: Vec<Transaction>
) -> impl Future<Output = Result<()>> + '_
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]
&mut self,
address: Pubkey,
commitment: CommitmentLevel
) -> impl Future<Output = Result<Option<Account>>> + '_
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]
&mut self,
address: Pubkey
) -> impl Future<Output = Result<Option<Account>>> + '_
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_packed_account_data<T: Pack>(
&mut self,
address: Pubkey
) -> impl Future<Output = Result<T>> + '_
[src]
&mut self,
address: Pubkey
) -> impl Future<Output = Result<T>> + '_
Return the unpacked account data at the given address If the account is not found, an error is returned
pub fn get_account_data_with_borsh<T: BorshDeserialize>(
&mut self,
address: Pubkey
) -> impl Future<Output = Result<T>> + '_
[src]
&mut self,
address: Pubkey
) -> impl Future<Output = Result<T>> + '_
Return the unpacked account data at the given address If the account is not found, an error is returned
pub fn get_balance_with_commitment(
&mut self,
address: Pubkey,
commitment: CommitmentLevel
) -> impl Future<Output = Result<u64>> + '_
[src]
&mut self,
address: Pubkey,
commitment: CommitmentLevel
) -> impl Future<Output = Result<u64>> + '_
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]
&mut self,
address: Pubkey
) -> impl Future<Output = Result<u64>> + '_
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]
&mut self,
signature: Signature
) -> impl Future<Output = Result<Option<TransactionStatus>>> + '_
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]
&mut self,
signatures: Vec<Signature>
) -> Result<Vec<Option<TransactionStatus>>>
Same as get_transaction_status, but for multiple transactions.
Trait Implementations
impl Clone for BanksClient
[src]
fn clone(&self) -> BanksClient
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl !RefUnwindSafe for BanksClient
impl Send for BanksClient
impl Sync for BanksClient
impl Unpin for BanksClient
impl !UnwindSafe for BanksClient
Blanket Implementations
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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,