pub struct BanksClient(/* private fields */);
Expand description
The client stub that makes RPC calls to the server. All request methods return Futures.
Implementations§
Source§impl BanksClient
impl BanksClient
Sourcepub fn new<T>(
config: Config,
transport: T,
) -> NewClient<Self, RequestDispatch<BanksRequest, BanksResponse, T>>
pub fn new<T>( config: Config, transport: T, ) -> NewClient<Self, RequestDispatch<BanksRequest, BanksResponse, T>>
Returns a new client stub that sends requests over the given transport.
Source§impl BanksClient
impl BanksClient
pub fn send_transaction_with_context( &self, ctx: Context, transaction: VersionedTransaction, ) -> impl Future<Output = Result<(), RpcError>> + '_
pub fn get_transaction_status_with_context( &self, ctx: Context, signature: Signature, ) -> impl Future<Output = Result<Option<TransactionStatus>, RpcError>> + '_
pub fn get_slot_with_context( &self, ctx: Context, commitment: CommitmentLevel, ) -> impl Future<Output = Result<Slot, RpcError>> + '_
pub fn get_block_height_with_context( &self, ctx: Context, commitment: CommitmentLevel, ) -> impl Future<Output = Result<u64, RpcError>> + '_
pub fn process_transaction_with_preflight_and_commitment_and_context( &self, ctx: Context, transaction: VersionedTransaction, commitment: CommitmentLevel, ) -> impl Future<Output = Result<BanksTransactionResultWithSimulation, RpcError>> + '_
pub fn process_transaction_with_commitment_and_context( &self, ctx: Context, transaction: VersionedTransaction, commitment: CommitmentLevel, ) -> impl Future<Output = Result<Option<Result<()>>, RpcError>> + '_
pub fn process_transaction_with_metadata_and_context( &self, ctx: Context, transaction: VersionedTransaction, ) -> impl Future<Output = Result<BanksTransactionResultWithMetadata, RpcError>> + '_
pub fn simulate_transaction_with_commitment_and_context( &self, ctx: Context, transaction: VersionedTransaction, commitment: CommitmentLevel, ) -> impl Future<Output = Result<BanksTransactionResultWithSimulation, RpcError>> + '_
pub fn get_account_with_commitment_and_context( &self, ctx: Context, address: Pubkey, commitment: CommitmentLevel, ) -> impl Future<Output = Result<Option<Account>, RpcError>> + '_
pub fn get_latest_blockhash_with_context( &self, ctx: Context, ) -> impl Future<Output = Result<Hash, RpcError>> + '_
pub fn get_latest_blockhash_with_commitment_and_context( &self, ctx: Context, commitment: CommitmentLevel, ) -> impl Future<Output = Result<Option<(Hash, u64)>, RpcError>> + '_
pub fn get_fee_for_message_with_commitment_and_context( &self, ctx: Context, message: Message, commitment: CommitmentLevel, ) -> impl Future<Output = Result<Option<u64>, RpcError>> + '_
Trait Implementations§
Source§impl Clone for BanksClient
impl Clone for BanksClient
Source§fn clone(&self) -> BanksClient
fn clone(&self) -> BanksClient
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for BanksClient
impl RefUnwindSafe for BanksClient
impl Send for BanksClient
impl Sync for BanksClient
impl Unpin for BanksClient
impl UnwindSafe for BanksClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more