Struct solana_core::rpc::gen_client::Client[][src]

pub struct Client { /* fields omitted */ }

The Client.

Implementations

impl Client[src]

pub fn new(sender: RpcChannel) -> Self[src]

Creates a new Client.

pub fn confirm_transaction(
    &self,
    signature_str: String,
    commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<bool>, Error = RpcError>
[src]

pub fn get_signature_status(
    &self,
    signature_str: String,
    commitment: Option<CommitmentConfig>
) -> impl Future<Item = Option<Result<()>>, Error = RpcError>
[src]

pub fn get_signature_confirmation(
    &self,
    signature_str: String,
    commitment: Option<CommitmentConfig>
) -> impl Future<Item = Option<RpcSignatureConfirmation>, Error = RpcError>
[src]

pub fn get_account_info(
    &self,
    pubkey_str: String,
    config: Option<RpcAccountInfoConfig>
) -> impl Future<Item = RpcResponse<Option<UiAccount>>, Error = RpcError>
[src]

pub fn get_multiple_accounts(
    &self,
    pubkey_strs: Vec<String>,
    config: Option<RpcAccountInfoConfig>
) -> impl Future<Item = RpcResponse<Vec<Option<UiAccount>>>, Error = RpcError>
[src]

pub fn get_program_accounts(
    &self,
    program_id_str: String,
    config: Option<RpcProgramAccountsConfig>
) -> impl Future<Item = Vec<RpcKeyedAccount>, Error = RpcError>
[src]

pub fn get_minimum_balance_for_rent_exemption(
    &self,
    data_len: usize,
    commitment: Option<CommitmentConfig>
) -> impl Future<Item = u64, Error = RpcError>
[src]

pub fn get_inflation_governor(
    &self,
    commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcInflationGovernor, Error = RpcError>
[src]

pub fn get_inflation_rate(
    &self
) -> impl Future<Item = RpcInflationRate, Error = RpcError>
[src]

pub fn get_epoch_schedule(
    &self
) -> impl Future<Item = EpochSchedule, Error = RpcError>
[src]

pub fn get_balance(
    &self,
    pubkey_str: String,
    commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<u64>, Error = RpcError>
[src]

pub fn get_cluster_nodes(
    &self
) -> impl Future<Item = Vec<RpcContactInfo>, Error = RpcError>
[src]

pub fn get_recent_performance_samples(
    &self,
    limit: Option<usize>
) -> impl Future<Item = Vec<RpcPerfSample>, Error = RpcError>
[src]

pub fn get_epoch_info(
    &self,
    commitment: Option<CommitmentConfig>
) -> impl Future<Item = EpochInfo, Error = RpcError>
[src]

pub fn get_block_commitment(
    &self,
    block: Slot
) -> impl Future<Item = RpcBlockCommitment<BlockCommitmentArray>, Error = RpcError>
[src]

pub fn get_genesis_hash(&self) -> impl Future<Item = String, Error = RpcError>[src]

pub fn get_health(&self) -> impl Future<Item = String, Error = RpcError>[src]

pub fn get_leader_schedule(
    &self,
    slot: Option<Slot>,
    commitment: Option<CommitmentConfig>
) -> impl Future<Item = Option<RpcLeaderSchedule>, Error = RpcError>
[src]

pub fn get_recent_blockhash(
    &self,
    commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<RpcBlockhashFeeCalculator>, Error = RpcError>
[src]

pub fn get_fees(
    &self,
    commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<RpcFees>, Error = RpcError>
[src]

pub fn get_fee_calculator_for_blockhash(
    &self,
    blockhash: String,
    commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<Option<RpcFeeCalculator>>, Error = RpcError>
[src]

pub fn get_fee_rate_governor(
    &self
) -> impl Future<Item = RpcResponse<RpcFeeRateGovernor>, Error = RpcError>
[src]

pub fn get_snapshot_slot(&self) -> impl Future<Item = Slot, Error = RpcError>[src]

pub fn get_signature_statuses(
    &self,
    signature_strs: Vec<String>,
    config: Option<RpcSignatureStatusConfig>
) -> impl Future<Item = RpcResponse<Vec<Option<TransactionStatus>>>, Error = RpcError>
[src]

pub fn get_slot(
    &self,
    commitment: Option<CommitmentConfig>
) -> impl Future<Item = Slot, Error = RpcError>
[src]

pub fn get_max_retransmit_slot(
    &self
) -> impl Future<Item = Slot, Error = RpcError>
[src]

pub fn get_max_shred_insert_slot(
    &self
) -> impl Future<Item = Slot, Error = RpcError>
[src]

pub fn get_transaction_count(
    &self,
    commitment: Option<CommitmentConfig>
) -> impl Future<Item = u64, Error = RpcError>
[src]

pub fn get_total_supply(
    &self,
    commitment: Option<CommitmentConfig>
) -> impl Future<Item = u64, Error = RpcError>
[src]

pub fn get_largest_accounts(
    &self,
    config: Option<RpcLargestAccountsConfig>
) -> impl Future<Item = RpcResponse<Vec<RpcAccountBalance>>, Error = RpcError>
[src]

pub fn get_supply(
    &self,
    commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<RpcSupply>, Error = RpcError>
[src]

pub fn request_airdrop(
    &self,
    pubkey_str: String,
    lamports: u64,
    commitment: Option<CommitmentConfig>
) -> impl Future<Item = String, Error = RpcError>
[src]

pub fn send_transaction(
    &self,
    data: String,
    config: Option<RpcSendTransactionConfig>
) -> impl Future<Item = String, Error = RpcError>
[src]

pub fn simulate_transaction(
    &self,
    data: String,
    config: Option<RpcSimulateTransactionConfig>
) -> impl Future<Item = RpcResponse<RpcSimulateTransactionResult>, Error = RpcError>
[src]

pub fn get_slot_leader(
    &self,
    commitment: Option<CommitmentConfig>
) -> impl Future<Item = String, Error = RpcError>
[src]

pub fn minimum_ledger_slot(&self) -> impl Future<Item = Slot, Error = RpcError>[src]

pub fn get_vote_accounts(
    &self,
    commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcVoteAccountStatus, Error = RpcError>
[src]

pub fn validator_exit(&self) -> impl Future<Item = bool, Error = RpcError>[src]

pub fn get_identity(&self) -> impl Future<Item = RpcIdentity, Error = RpcError>[src]

pub fn get_version(
    &self
) -> impl Future<Item = RpcVersionInfo, Error = RpcError>
[src]

pub fn set_log_filter(
    &self,
    filter: String
) -> impl Future<Item = (), Error = RpcError>
[src]

pub fn get_confirmed_block(
    &self,
    slot: Slot,
    encoding: Option<UiTransactionEncoding>
) -> impl Future<Item = Option<EncodedConfirmedBlock>, Error = RpcError>
[src]

pub fn get_block_time(
    &self,
    slot: Slot
) -> impl Future<Item = Option<UnixTimestamp>, Error = RpcError>
[src]

pub fn get_confirmed_blocks(
    &self,
    start_slot: Slot,
    end_slot: Option<Slot>
) -> impl Future<Item = Vec<Slot>, Error = RpcError>
[src]

pub fn get_confirmed_blocks_with_limit(
    &self,
    start_slot: Slot,
    limit: usize
) -> impl Future<Item = Vec<Slot>, Error = RpcError>
[src]

pub fn get_confirmed_transaction(
    &self,
    signature_str: String,
    encoding: Option<UiTransactionEncoding>
) -> impl Future<Item = Option<EncodedConfirmedTransaction>, Error = RpcError>
[src]

pub fn get_confirmed_signatures_for_address(
    &self,
    pubkey_str: String,
    start_slot: Slot,
    end_slot: Slot
) -> impl Future<Item = Vec<String>, Error = RpcError>
[src]

pub fn get_confirmed_signatures_for_address2(
    &self,
    address: String,
    config: Option<RpcGetConfirmedSignaturesForAddress2Config>
) -> impl Future<Item = Vec<RpcConfirmedTransactionStatusWithSignature>, Error = RpcError>
[src]

pub fn get_first_available_block(
    &self
) -> impl Future<Item = Slot, Error = RpcError>
[src]

pub fn get_stake_activation(
    &self,
    pubkey_str: String,
    config: Option<RpcStakeConfig>
) -> impl Future<Item = RpcStakeActivation, Error = RpcError>
[src]

pub fn get_token_account_balance(
    &self,
    pubkey_str: String,
    commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<UiTokenAmount>, Error = RpcError>
[src]

pub fn get_token_supply(
    &self,
    mint_str: String,
    commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<UiTokenAmount>, Error = RpcError>
[src]

pub fn get_token_largest_accounts(
    &self,
    mint_str: String,
    commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<Vec<RpcTokenAccountBalance>>, Error = RpcError>
[src]

pub fn get_token_accounts_by_owner(
    &self,
    owner_str: String,
    token_account_filter: RpcTokenAccountsFilter,
    config: Option<RpcAccountInfoConfig>
) -> impl Future<Item = RpcResponse<Vec<RpcKeyedAccount>>, Error = RpcError>
[src]

pub fn get_token_accounts_by_delegate(
    &self,
    delegate_str: String,
    token_account_filter: RpcTokenAccountsFilter,
    config: Option<RpcAccountInfoConfig>
) -> impl Future<Item = RpcResponse<Vec<RpcKeyedAccount>>, Error = RpcError>
[src]

pub fn get_velas_accounts_by_operational_key(
    &self,
    pubkey_str: String
) -> impl Future<Item = RpcResponse<Vec<String>>, Error = RpcError>
[src]

pub fn get_velas_accounts_by_owner_key(
    &self,
    pubkey_str: String
) -> impl Future<Item = RpcResponse<Vec<String>>, Error = RpcError>
[src]

Trait Implementations

impl Clone for Client[src]

impl From<RpcChannel> for Client[src]

Auto Trait Implementations

impl !RefUnwindSafe for Client

impl Send for Client

impl Sync for Client

impl Unpin for Client

impl !UnwindSafe for Client

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]