Trait solana_banks_interface::Banks

source ·
pub trait Banks: Sized {
Show 27 associated items type SendTransactionWithContextFut: Future<Output = ()>; type GetFeesWithCommitmentAndContextFut: Future<Output = (FeeCalculator, Hash, Slot)>; type GetTransactionStatusWithContextFut: Future<Output = Option<TransactionStatus>>; type GetSlotWithContextFut: Future<Output = Slot>; type GetBlockHeightWithContextFut: Future<Output = u64>; type ProcessTransactionWithPreflightAndCommitmentAndContextFut: Future<Output = BanksTransactionResultWithSimulation>; type ProcessTransactionWithCommitmentAndContextFut: Future<Output = Option<Result<()>>>; type ProcessTransactionWithMetadataAndContextFut: Future<Output = BanksTransactionResultWithMetadata>; type SimulateTransactionWithCommitmentAndContextFut: Future<Output = BanksTransactionResultWithSimulation>; type GetAccountWithCommitmentAndContextFut: Future<Output = Option<Account>>; type GetLatestBlockhashWithContextFut: Future<Output = Hash>; type GetLatestBlockhashWithCommitmentAndContextFut: Future<Output = Option<(Hash, u64)>>; type GetFeeForMessageWithCommitmentAndContextFut: Future<Output = Option<u64>>; // Required methods fn send_transaction_with_context( self, context: Context, transaction: VersionedTransaction ) -> Self::SendTransactionWithContextFut; fn get_fees_with_commitment_and_context( self, context: Context, commitment: CommitmentLevel ) -> Self::GetFeesWithCommitmentAndContextFut; fn get_transaction_status_with_context( self, context: Context, signature: Signature ) -> Self::GetTransactionStatusWithContextFut; fn get_slot_with_context( self, context: Context, commitment: CommitmentLevel ) -> Self::GetSlotWithContextFut; fn get_block_height_with_context( self, context: Context, commitment: CommitmentLevel ) -> Self::GetBlockHeightWithContextFut; fn process_transaction_with_preflight_and_commitment_and_context( self, context: Context, transaction: VersionedTransaction, commitment: CommitmentLevel ) -> Self::ProcessTransactionWithPreflightAndCommitmentAndContextFut; fn process_transaction_with_commitment_and_context( self, context: Context, transaction: VersionedTransaction, commitment: CommitmentLevel ) -> Self::ProcessTransactionWithCommitmentAndContextFut; fn process_transaction_with_metadata_and_context( self, context: Context, transaction: VersionedTransaction ) -> Self::ProcessTransactionWithMetadataAndContextFut; fn simulate_transaction_with_commitment_and_context( self, context: Context, transaction: VersionedTransaction, commitment: CommitmentLevel ) -> Self::SimulateTransactionWithCommitmentAndContextFut; fn get_account_with_commitment_and_context( self, context: Context, address: Pubkey, commitment: CommitmentLevel ) -> Self::GetAccountWithCommitmentAndContextFut; fn get_latest_blockhash_with_context( self, context: Context ) -> Self::GetLatestBlockhashWithContextFut; fn get_latest_blockhash_with_commitment_and_context( self, context: Context, commitment: CommitmentLevel ) -> Self::GetLatestBlockhashWithCommitmentAndContextFut; fn get_fee_for_message_with_commitment_and_context( self, context: Context, message: Message, commitment: CommitmentLevel ) -> Self::GetFeeForMessageWithCommitmentAndContextFut; // Provided method fn serve(self) -> ServeBanks<Self> { ... }
}

Required Associated Types§

source

type SendTransactionWithContextFut: Future<Output = ()>

The response future returned by Banks::send_transaction_with_context.

source

type GetFeesWithCommitmentAndContextFut: Future<Output = (FeeCalculator, Hash, Slot)>

The response future returned by Banks::get_fees_with_commitment_and_context.

source

type GetTransactionStatusWithContextFut: Future<Output = Option<TransactionStatus>>

The response future returned by Banks::get_transaction_status_with_context.

source

type GetSlotWithContextFut: Future<Output = Slot>

The response future returned by Banks::get_slot_with_context.

source

type GetBlockHeightWithContextFut: Future<Output = u64>

The response future returned by Banks::get_block_height_with_context.

source

type ProcessTransactionWithPreflightAndCommitmentAndContextFut: Future<Output = BanksTransactionResultWithSimulation>

source

type ProcessTransactionWithCommitmentAndContextFut: Future<Output = Option<Result<()>>>

source

type ProcessTransactionWithMetadataAndContextFut: Future<Output = BanksTransactionResultWithMetadata>

source

type SimulateTransactionWithCommitmentAndContextFut: Future<Output = BanksTransactionResultWithSimulation>

source

type GetAccountWithCommitmentAndContextFut: Future<Output = Option<Account>>

The response future returned by Banks::get_account_with_commitment_and_context.

source

type GetLatestBlockhashWithContextFut: Future<Output = Hash>

The response future returned by Banks::get_latest_blockhash_with_context.

source

type GetLatestBlockhashWithCommitmentAndContextFut: Future<Output = Option<(Hash, u64)>>

source

type GetFeeForMessageWithCommitmentAndContextFut: Future<Output = Option<u64>>

Required Methods§

source

fn send_transaction_with_context( self, context: Context, transaction: VersionedTransaction ) -> Self::SendTransactionWithContextFut

source

fn get_fees_with_commitment_and_context( self, context: Context, commitment: CommitmentLevel ) -> Self::GetFeesWithCommitmentAndContextFut

👎Deprecated since 1.9.0: Please use get_fee_for_message_with_commitment_and_context instead
source

fn get_transaction_status_with_context( self, context: Context, signature: Signature ) -> Self::GetTransactionStatusWithContextFut

source

fn get_slot_with_context( self, context: Context, commitment: CommitmentLevel ) -> Self::GetSlotWithContextFut

source

fn get_block_height_with_context( self, context: Context, commitment: CommitmentLevel ) -> Self::GetBlockHeightWithContextFut

source

fn process_transaction_with_preflight_and_commitment_and_context( self, context: Context, transaction: VersionedTransaction, commitment: CommitmentLevel ) -> Self::ProcessTransactionWithPreflightAndCommitmentAndContextFut

source

fn process_transaction_with_commitment_and_context( self, context: Context, transaction: VersionedTransaction, commitment: CommitmentLevel ) -> Self::ProcessTransactionWithCommitmentAndContextFut

source

fn process_transaction_with_metadata_and_context( self, context: Context, transaction: VersionedTransaction ) -> Self::ProcessTransactionWithMetadataAndContextFut

source

fn simulate_transaction_with_commitment_and_context( self, context: Context, transaction: VersionedTransaction, commitment: CommitmentLevel ) -> Self::SimulateTransactionWithCommitmentAndContextFut

source

fn get_account_with_commitment_and_context( self, context: Context, address: Pubkey, commitment: CommitmentLevel ) -> Self::GetAccountWithCommitmentAndContextFut

source

fn get_latest_blockhash_with_context( self, context: Context ) -> Self::GetLatestBlockhashWithContextFut

source

fn get_latest_blockhash_with_commitment_and_context( self, context: Context, commitment: CommitmentLevel ) -> Self::GetLatestBlockhashWithCommitmentAndContextFut

source

fn get_fee_for_message_with_commitment_and_context( self, context: Context, message: Message, commitment: CommitmentLevel ) -> Self::GetFeeForMessageWithCommitmentAndContextFut

Provided Methods§

source

fn serve(self) -> ServeBanks<Self>

Returns a serving function to use with InFlightRequest::execute.

Object Safety§

This trait is not object safe.

Implementors§