[][src]Struct solana_client::rpc_client::RpcClient

pub struct RpcClient { /* fields omitted */ }

Methods

impl RpcClient[src]

pub fn new(url: String) -> Self[src]

pub fn new_mock(url: String) -> Self[src]

pub fn new_mock_with_mocks(url: String, mocks: Mocks) -> Self[src]

pub fn new_socket(addr: SocketAddr) -> Self[src]

pub fn new_socket_with_timeout(addr: SocketAddr, timeout: Duration) -> Self[src]

pub fn confirm_transaction(&self, signature: &Signature) -> ClientResult<bool>[src]

pub fn confirm_transaction_with_commitment(
    &self,
    signature: &Signature,
    commitment_config: CommitmentConfig
) -> RpcResult<bool>
[src]

pub fn send_transaction(
    &self,
    transaction: &Transaction
) -> ClientResult<Signature>
[src]

pub fn get_signature_status(
    &self,
    signature: &Signature
) -> ClientResult<Option<Result<()>>>
[src]

pub fn get_signature_statuses(
    &self,
    signatures: &[Signature]
) -> RpcResult<Vec<Option<TransactionStatus>>>
[src]

pub fn get_signature_status_with_commitment(
    &self,
    signature: &Signature,
    commitment_config: CommitmentConfig
) -> ClientResult<Option<Result<()>>>
[src]

pub fn get_slot(&self) -> ClientResult<Slot>[src]

pub fn get_slot_with_commitment(
    &self,
    commitment_config: CommitmentConfig
) -> ClientResult<Slot>
[src]

pub fn get_vote_accounts(&self) -> ClientResult<RpcVoteAccountStatus>[src]

pub fn get_vote_accounts_with_commitment(
    &self,
    commitment_config: CommitmentConfig
) -> ClientResult<RpcVoteAccountStatus>
[src]

pub fn get_cluster_nodes(&self) -> ClientResult<Vec<RpcContactInfo>>[src]

pub fn get_confirmed_block(&self, slot: Slot) -> ClientResult<ConfirmedBlock>[src]

pub fn get_confirmed_block_with_encoding(
    &self,
    slot: Slot,
    encoding: TransactionEncoding
) -> ClientResult<ConfirmedBlock>
[src]

pub fn get_confirmed_blocks(
    &self,
    start_slot: Slot,
    end_slot: Option<Slot>
) -> ClientResult<Vec<Slot>>
[src]

pub fn get_block_time(&self, slot: Slot) -> ClientResult<UnixTimestamp>[src]

pub fn get_epoch_info(&self) -> ClientResult<RpcEpochInfo>[src]

pub fn get_epoch_info_with_commitment(
    &self,
    commitment_config: CommitmentConfig
) -> ClientResult<RpcEpochInfo>
[src]

pub fn get_leader_schedule(
    &self,
    slot: Option<Slot>
) -> ClientResult<Option<RpcLeaderSchedule>>
[src]

pub fn get_leader_schedule_with_commitment(
    &self,
    slot: Option<Slot>,
    commitment_config: CommitmentConfig
) -> ClientResult<Option<RpcLeaderSchedule>>
[src]

pub fn get_epoch_schedule(&self) -> ClientResult<EpochSchedule>[src]

pub fn get_identity(&self) -> ClientResult<Pubkey>[src]

pub fn get_inflation(&self) -> ClientResult<Inflation>[src]

pub fn get_version(&self) -> ClientResult<RpcVersionInfo>[src]

pub fn minimum_ledger_slot(&self) -> ClientResult<Slot>[src]

pub fn send_and_confirm_transaction<T: Signers>(
    &self,
    transaction: &mut Transaction,
    signer_keys: &T
) -> ClientResult<Signature>
[src]

pub fn send_and_confirm_transactions<T: Signers>(
    &self,
    transactions: Vec<Transaction>,
    signer_keys: &T
) -> Result<(), Box<dyn Error>>
[src]

pub fn resign_transaction<T: Signers>(
    &self,
    tx: &mut Transaction,
    signer_keys: &T
) -> ClientResult<()>
[src]

pub fn retry_get_balance(
    &self,
    pubkey: &Pubkey,
    retries: usize
) -> Result<Option<u64>, Box<dyn Error>>
[src]

pub fn get_account(&self, pubkey: &Pubkey) -> ClientResult<Account>[src]

pub fn get_account_with_commitment(
    &self,
    pubkey: &Pubkey,
    commitment_config: CommitmentConfig
) -> RpcResult<Option<Account>>
[src]

pub fn get_account_data(&self, pubkey: &Pubkey) -> ClientResult<Vec<u8>>[src]

pub fn get_minimum_balance_for_rent_exemption(
    &self,
    data_len: usize
) -> ClientResult<u64>
[src]

pub fn get_balance(&self, pubkey: &Pubkey) -> ClientResult<u64>[src]

Request the balance of the account pubkey.

pub fn get_balance_with_commitment(
    &self,
    pubkey: &Pubkey,
    commitment_config: CommitmentConfig
) -> RpcResult<u64>
[src]

pub fn get_program_accounts(
    &self,
    pubkey: &Pubkey
) -> ClientResult<Vec<(Pubkey, Account)>>
[src]

pub fn get_transaction_count(&self) -> ClientResult<u64>[src]

Request the transaction count.

pub fn get_transaction_count_with_commitment(
    &self,
    commitment_config: CommitmentConfig
) -> ClientResult<u64>
[src]

pub fn get_recent_blockhash(&self) -> ClientResult<(Hash, FeeCalculator)>[src]

pub fn get_recent_blockhash_with_commitment(
    &self,
    commitment_config: CommitmentConfig
) -> RpcResult<(Hash, FeeCalculator)>
[src]

pub fn get_fee_calculator_for_blockhash(
    &self,
    blockhash: &Hash
) -> ClientResult<Option<FeeCalculator>>
[src]

pub fn get_fee_rate_governor(&self) -> RpcResult<FeeRateGovernor>[src]

pub fn get_new_blockhash(
    &self,
    blockhash: &Hash
) -> ClientResult<(Hash, FeeCalculator)>
[src]

pub fn get_genesis_hash(&self) -> ClientResult<Hash>[src]

pub fn poll_balance_with_timeout_and_commitment(
    &self,
    pubkey: &Pubkey,
    polling_frequency: &Duration,
    timeout: &Duration,
    commitment_config: CommitmentConfig
) -> ClientResult<u64>
[src]

pub fn poll_get_balance_with_commitment(
    &self,
    pubkey: &Pubkey,
    commitment_config: CommitmentConfig
) -> ClientResult<u64>
[src]

pub fn wait_for_balance_with_commitment(
    &self,
    pubkey: &Pubkey,
    expected_balance: Option<u64>,
    commitment_config: CommitmentConfig
) -> Option<u64>
[src]

pub fn poll_for_signature(&self, signature: &Signature) -> ClientResult<()>[src]

Poll the server to confirm a transaction.

pub fn poll_for_signature_with_commitment(
    &self,
    signature: &Signature,
    commitment_config: CommitmentConfig
) -> ClientResult<()>
[src]

Poll the server to confirm a transaction.

pub fn check_signature(&self, signature: &Signature) -> bool[src]

Check a signature in the bank.

pub fn poll_for_signature_confirmation(
    &self,
    signature: &Signature,
    min_confirmed_blocks: usize
) -> ClientResult<usize>
[src]

Poll the server to confirm a transaction.

pub fn get_num_blocks_since_signature_confirmation(
    &self,
    signature: &Signature
) -> ClientResult<usize>
[src]

pub fn send_and_confirm_transaction_with_spinner<T: Signers>(
    &self,
    transaction: &mut Transaction,
    signer_keys: &T
) -> ClientResult<Signature>
[src]

pub fn validator_exit(&self) -> ClientResult<bool>[src]

pub fn send(
    &self,
    request: &RpcRequest,
    params: Value,
    retries: usize
) -> ClientResult<Value>
[src]

Auto Trait Implementations

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,