Struct solana_core::rpc::gen_client::Client [−][src]
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]
&self,
signature_str: String,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<bool>, Error = RpcError>
pub fn get_signature_status(
&self,
signature_str: String,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = Option<Result<()>>, Error = RpcError>
[src]
&self,
signature_str: String,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = Option<Result<()>>, Error = RpcError>
pub fn get_signature_confirmation(
&self,
signature_str: String,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = Option<RpcSignatureConfirmation>, Error = RpcError>
[src]
&self,
signature_str: String,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = Option<RpcSignatureConfirmation>, Error = RpcError>
pub fn get_account_info(
&self,
pubkey_str: String,
config: Option<RpcAccountInfoConfig>
) -> impl Future<Item = RpcResponse<Option<UiAccount>>, Error = RpcError>
[src]
&self,
pubkey_str: String,
config: Option<RpcAccountInfoConfig>
) -> impl Future<Item = RpcResponse<Option<UiAccount>>, Error = RpcError>
pub fn get_multiple_accounts(
&self,
pubkey_strs: Vec<String>,
config: Option<RpcAccountInfoConfig>
) -> impl Future<Item = RpcResponse<Vec<Option<UiAccount>>>, Error = RpcError>
[src]
&self,
pubkey_strs: Vec<String>,
config: Option<RpcAccountInfoConfig>
) -> impl Future<Item = RpcResponse<Vec<Option<UiAccount>>>, Error = RpcError>
pub fn get_program_accounts(
&self,
program_id_str: String,
config: Option<RpcProgramAccountsConfig>
) -> impl Future<Item = Vec<RpcKeyedAccount>, Error = RpcError>
[src]
&self,
program_id_str: String,
config: Option<RpcProgramAccountsConfig>
) -> impl Future<Item = Vec<RpcKeyedAccount>, Error = RpcError>
pub fn get_minimum_balance_for_rent_exemption(
&self,
data_len: usize,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = u64, Error = RpcError>
[src]
&self,
data_len: usize,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = u64, Error = RpcError>
pub fn get_inflation_governor(
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcInflationGovernor, Error = RpcError>
[src]
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcInflationGovernor, Error = RpcError>
pub fn get_inflation_rate(
&self
) -> impl Future<Item = RpcInflationRate, Error = RpcError>
[src]
&self
) -> impl Future<Item = RpcInflationRate, Error = RpcError>
pub fn get_epoch_schedule(
&self
) -> impl Future<Item = EpochSchedule, Error = RpcError>
[src]
&self
) -> impl Future<Item = EpochSchedule, Error = RpcError>
pub fn get_balance(
&self,
pubkey_str: String,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<u64>, Error = RpcError>
[src]
&self,
pubkey_str: String,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<u64>, Error = RpcError>
pub fn get_cluster_nodes(
&self
) -> impl Future<Item = Vec<RpcContactInfo>, Error = RpcError>
[src]
&self
) -> impl Future<Item = Vec<RpcContactInfo>, Error = RpcError>
pub fn get_recent_performance_samples(
&self,
limit: Option<usize>
) -> impl Future<Item = Vec<RpcPerfSample>, Error = RpcError>
[src]
&self,
limit: Option<usize>
) -> impl Future<Item = Vec<RpcPerfSample>, Error = RpcError>
pub fn get_epoch_info(
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = EpochInfo, Error = RpcError>
[src]
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = EpochInfo, Error = RpcError>
pub fn get_block_commitment(
&self,
block: Slot
) -> impl Future<Item = RpcBlockCommitment<BlockCommitmentArray>, Error = RpcError>
[src]
&self,
block: Slot
) -> impl Future<Item = RpcBlockCommitment<BlockCommitmentArray>, Error = RpcError>
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]
&self,
slot: Option<Slot>,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = Option<RpcLeaderSchedule>, Error = RpcError>
pub fn get_recent_blockhash(
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<RpcBlockhashFeeCalculator>, Error = RpcError>
[src]
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<RpcBlockhashFeeCalculator>, Error = RpcError>
pub fn get_fees(
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<RpcFees>, Error = RpcError>
[src]
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<RpcFees>, Error = RpcError>
pub fn get_fee_calculator_for_blockhash(
&self,
blockhash: String,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<Option<RpcFeeCalculator>>, Error = RpcError>
[src]
&self,
blockhash: String,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<Option<RpcFeeCalculator>>, Error = RpcError>
pub fn get_fee_rate_governor(
&self
) -> impl Future<Item = RpcResponse<RpcFeeRateGovernor>, Error = RpcError>
[src]
&self
) -> impl Future<Item = RpcResponse<RpcFeeRateGovernor>, Error = RpcError>
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]
&self,
signature_strs: Vec<String>,
config: Option<RpcSignatureStatusConfig>
) -> impl Future<Item = RpcResponse<Vec<Option<TransactionStatus>>>, Error = RpcError>
pub fn get_slot(
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = Slot, Error = RpcError>
[src]
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = Slot, Error = RpcError>
pub fn get_max_retransmit_slot(
&self
) -> impl Future<Item = Slot, Error = RpcError>
[src]
&self
) -> impl Future<Item = Slot, Error = RpcError>
pub fn get_max_shred_insert_slot(
&self
) -> impl Future<Item = Slot, Error = RpcError>
[src]
&self
) -> impl Future<Item = Slot, Error = RpcError>
pub fn get_transaction_count(
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = u64, Error = RpcError>
[src]
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = u64, Error = RpcError>
pub fn get_total_supply(
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = u64, Error = RpcError>
[src]
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = u64, Error = RpcError>
pub fn get_largest_accounts(
&self,
config: Option<RpcLargestAccountsConfig>
) -> impl Future<Item = RpcResponse<Vec<RpcAccountBalance>>, Error = RpcError>
[src]
&self,
config: Option<RpcLargestAccountsConfig>
) -> impl Future<Item = RpcResponse<Vec<RpcAccountBalance>>, Error = RpcError>
pub fn get_supply(
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<RpcSupply>, Error = RpcError>
[src]
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<RpcSupply>, Error = RpcError>
pub fn request_airdrop(
&self,
pubkey_str: String,
lamports: u64,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = String, Error = RpcError>
[src]
&self,
pubkey_str: String,
lamports: u64,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = String, Error = RpcError>
pub fn send_transaction(
&self,
data: String,
config: Option<RpcSendTransactionConfig>
) -> impl Future<Item = String, Error = RpcError>
[src]
&self,
data: String,
config: Option<RpcSendTransactionConfig>
) -> impl Future<Item = String, Error = RpcError>
pub fn simulate_transaction(
&self,
data: String,
config: Option<RpcSimulateTransactionConfig>
) -> impl Future<Item = RpcResponse<RpcSimulateTransactionResult>, Error = RpcError>
[src]
&self,
data: String,
config: Option<RpcSimulateTransactionConfig>
) -> impl Future<Item = RpcResponse<RpcSimulateTransactionResult>, Error = RpcError>
pub fn get_slot_leader(
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = String, Error = RpcError>
[src]
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = String, Error = RpcError>
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]
&self,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcVoteAccountStatus, Error = RpcError>
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]
&self
) -> impl Future<Item = RpcVersionInfo, Error = RpcError>
pub fn set_log_filter(
&self,
filter: String
) -> impl Future<Item = (), Error = RpcError>
[src]
&self,
filter: String
) -> impl Future<Item = (), Error = RpcError>
pub fn get_confirmed_block(
&self,
slot: Slot,
encoding: Option<UiTransactionEncoding>
) -> impl Future<Item = Option<EncodedConfirmedBlock>, Error = RpcError>
[src]
&self,
slot: Slot,
encoding: Option<UiTransactionEncoding>
) -> impl Future<Item = Option<EncodedConfirmedBlock>, Error = RpcError>
pub fn get_block_time(
&self,
slot: Slot
) -> impl Future<Item = Option<UnixTimestamp>, Error = RpcError>
[src]
&self,
slot: Slot
) -> impl Future<Item = Option<UnixTimestamp>, Error = RpcError>
pub fn get_confirmed_blocks(
&self,
start_slot: Slot,
end_slot: Option<Slot>
) -> impl Future<Item = Vec<Slot>, Error = RpcError>
[src]
&self,
start_slot: Slot,
end_slot: Option<Slot>
) -> impl Future<Item = Vec<Slot>, Error = RpcError>
pub fn get_confirmed_blocks_with_limit(
&self,
start_slot: Slot,
limit: usize
) -> impl Future<Item = Vec<Slot>, Error = RpcError>
[src]
&self,
start_slot: Slot,
limit: usize
) -> impl Future<Item = Vec<Slot>, Error = RpcError>
pub fn get_confirmed_transaction(
&self,
signature_str: String,
encoding: Option<UiTransactionEncoding>
) -> impl Future<Item = Option<EncodedConfirmedTransaction>, Error = RpcError>
[src]
&self,
signature_str: String,
encoding: Option<UiTransactionEncoding>
) -> impl Future<Item = Option<EncodedConfirmedTransaction>, Error = RpcError>
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]
&self,
pubkey_str: String,
start_slot: Slot,
end_slot: Slot
) -> impl Future<Item = Vec<String>, Error = RpcError>
pub fn get_confirmed_signatures_for_address2(
&self,
address: String,
config: Option<RpcGetConfirmedSignaturesForAddress2Config>
) -> impl Future<Item = Vec<RpcConfirmedTransactionStatusWithSignature>, Error = RpcError>
[src]
&self,
address: String,
config: Option<RpcGetConfirmedSignaturesForAddress2Config>
) -> impl Future<Item = Vec<RpcConfirmedTransactionStatusWithSignature>, Error = RpcError>
pub fn get_first_available_block(
&self
) -> impl Future<Item = Slot, Error = RpcError>
[src]
&self
) -> impl Future<Item = Slot, Error = RpcError>
pub fn get_stake_activation(
&self,
pubkey_str: String,
config: Option<RpcStakeConfig>
) -> impl Future<Item = RpcStakeActivation, Error = RpcError>
[src]
&self,
pubkey_str: String,
config: Option<RpcStakeConfig>
) -> impl Future<Item = RpcStakeActivation, Error = RpcError>
pub fn get_token_account_balance(
&self,
pubkey_str: String,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<UiTokenAmount>, Error = RpcError>
[src]
&self,
pubkey_str: String,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<UiTokenAmount>, Error = RpcError>
pub fn get_token_supply(
&self,
mint_str: String,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<UiTokenAmount>, Error = RpcError>
[src]
&self,
mint_str: String,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<UiTokenAmount>, Error = RpcError>
pub fn get_token_largest_accounts(
&self,
mint_str: String,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<Vec<RpcTokenAccountBalance>>, Error = RpcError>
[src]
&self,
mint_str: String,
commitment: Option<CommitmentConfig>
) -> impl Future<Item = RpcResponse<Vec<RpcTokenAccountBalance>>, Error = RpcError>
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]
&self,
owner_str: String,
token_account_filter: RpcTokenAccountsFilter,
config: Option<RpcAccountInfoConfig>
) -> impl Future<Item = RpcResponse<Vec<RpcKeyedAccount>>, Error = RpcError>
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]
&self,
delegate_str: String,
token_account_filter: RpcTokenAccountsFilter,
config: Option<RpcAccountInfoConfig>
) -> impl Future<Item = RpcResponse<Vec<RpcKeyedAccount>>, Error = RpcError>
pub fn get_velas_accounts_by_operational_key(
&self,
pubkey_str: String
) -> impl Future<Item = RpcResponse<Vec<String>>, Error = RpcError>
[src]
&self,
pubkey_str: String
) -> impl Future<Item = RpcResponse<Vec<String>>, Error = RpcError>
pub fn get_velas_accounts_by_owner_key(
&self,
pubkey_str: String
) -> impl Future<Item = RpcResponse<Vec<String>>, Error = RpcError>
[src]
&self,
pubkey_str: String
) -> impl Future<Item = RpcResponse<Vec<String>>, Error = RpcError>
Trait Implementations
impl Clone for Client
[src]
impl From<RpcChannel> for Client
[src]
fn from(channel: RpcChannel) -> Self
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,