Struct solana_rpc::rpc::rpc_minimal::gen_client::Client [−][src]
pub struct Client { /* fields omitted */ }
Expand description
The Client.
Implementations
pub fn get_balance(
&self,
pubkey_str: String,
commitment: Option<CommitmentConfig>
) -> impl Future<Output = RpcResult<RpcResponse<u64>>>
pub fn get_epoch_info(
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Output = RpcResult<EpochInfo>>
pub fn get_slot(
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Output = RpcResult<Slot>>
pub fn get_block_height(
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Output = RpcResult<u64>>
pub fn get_transaction_count(
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Output = RpcResult<u64>>
pub fn get_vote_accounts(
&self,
config: Option<RpcGetVoteAccountsConfig>
) -> impl Future<Output = RpcResult<RpcVoteAccountStatus>>
pub fn get_leader_schedule(
&self,
options: Option<RpcLeaderScheduleConfigWrapper>,
config: Option<RpcLeaderScheduleConfig>
) -> impl Future<Output = RpcResult<Option<RpcLeaderSchedule>>>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
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