Struct solana_banks_interface::BanksClient [−][src]
pub struct BanksClient(_);
Expand description
The client stub that makes RPC calls to the server. All request methods return Futures.
Implementations
pub fn new<T>(
config: Config,
transport: T
) -> NewClient<Self, RequestDispatch<BanksRequest, BanksResponse, T>> where
T: Transport<ClientMessage<BanksRequest>, Response<BanksResponse>>,
pub fn new<T>(
config: Config,
transport: T
) -> NewClient<Self, RequestDispatch<BanksRequest, BanksResponse, T>> where
T: Transport<ClientMessage<BanksRequest>, Response<BanksResponse>>,
Returns a new client stub that sends requests over the given transport.
pub fn send_transaction_with_context(
&self,
ctx: Context,
transaction: Transaction
) -> impl Future<Output = Result<()>> + '_
pub fn get_fees_with_commitment_and_context(
&self,
ctx: Context,
commitment: CommitmentLevel
) -> impl Future<Output = Result<(FeeCalculator, Hash, Slot)>> + '_
👎 Deprecated since 1.9.0:
Please use get_fee_for_message_with_commitment_and_context
instead
pub fn get_transaction_status_with_context(
&self,
ctx: Context,
signature: Signature
) -> impl Future<Output = Result<Option<TransactionStatus>>> + '_
pub fn get_slot_with_context(
&self,
ctx: Context,
commitment: CommitmentLevel
) -> impl Future<Output = Result<Slot>> + '_
pub fn get_block_height_with_context(
&self,
ctx: Context,
commitment: CommitmentLevel
) -> impl Future<Output = Result<u64>> + '_
pub fn process_transaction_with_commitment_and_context(
&self,
ctx: Context,
transaction: Transaction,
commitment: CommitmentLevel
) -> impl Future<Output = Result<Option<Result<()>>>> + '_
pub fn get_account_with_commitment_and_context(
&self,
ctx: Context,
address: Pubkey,
commitment: CommitmentLevel
) -> impl Future<Output = Result<Option<Account>>> + '_
pub fn get_latest_blockhash_with_context(
&self,
ctx: Context
) -> impl Future<Output = Result<Hash>> + '_
pub fn get_latest_blockhash_with_commitment_and_context(
&self,
ctx: Context,
commitment: CommitmentLevel
) -> impl Future<Output = Result<Option<(Hash, u64)>>> + '_
pub fn get_fee_for_message_with_commitment_and_context(
&self,
ctx: Context,
commitment: CommitmentLevel,
message: Message
) -> impl Future<Output = Result<Option<u64>>> + '_
Trait Implementations
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
pub default fn example() -> T
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
pub fn vzip(self) -> V
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