[−][src]Struct solana_client::rpc_client::RpcClient
Methods
impl RpcClient
[src]
pub fn new(url: String) -> Self
[src]
pub fn new_mock(url: String) -> Self
[src]
pub fn new_socket(addr: SocketAddr) -> Self
[src]
pub fn new_socket_with_timeout(addr: SocketAddr, timeout: Duration) -> Self
[src]
pub fn send_transaction(
&self,
transaction: &Transaction
) -> Result<String, Box<dyn Error>>
[src]
&self,
transaction: &Transaction
) -> Result<String, Box<dyn Error>>
pub fn get_signature_status(
&self,
signature: &str
) -> Result<Option<Result<()>>, Box<dyn Error>>
[src]
&self,
signature: &str
) -> Result<Option<Result<()>>, Box<dyn Error>>
pub fn send_and_confirm_transaction<T: KeypairUtil>(
&self,
transaction: &mut Transaction,
signer: &T
) -> Result<String, Box<dyn Error>>
[src]
&self,
transaction: &mut Transaction,
signer: &T
) -> Result<String, Box<dyn Error>>
pub fn send_and_confirm_transactions(
&self,
transactions: Vec<Transaction>,
signer: &Keypair
) -> Result<(), Box<dyn Error>>
[src]
&self,
transactions: Vec<Transaction>,
signer: &Keypair
) -> Result<(), Box<dyn Error>>
pub fn resign_transaction<T: KeypairUtil>(
&self,
tx: &mut Transaction,
signer_key: &T
) -> Result<(), Box<dyn Error>>
[src]
&self,
tx: &mut Transaction,
signer_key: &T
) -> Result<(), Box<dyn Error>>
pub fn retry_get_balance(
&self,
pubkey: &Pubkey,
retries: usize
) -> Result<Option<u64>, Box<dyn Error>>
[src]
&self,
pubkey: &Pubkey,
retries: usize
) -> Result<Option<u64>, Box<dyn Error>>
pub fn get_account_data(&self, pubkey: &Pubkey) -> Result<Vec<u8>>
[src]
pub fn get_balance(&self, pubkey: &Pubkey) -> Result<u64>
[src]
Request the balance of the user holding pubkey
. This method blocks
until the server sends a response. If the response packet is dropped
by the network, this method will hang indefinitely.
pub fn get_transaction_count(&self) -> Result<u64>
[src]
Request the transaction count. If the response packet is dropped by the network, this method will try again 5 times.
pub fn get_recent_blockhash(&self) -> Result<Hash>
[src]
pub fn get_new_blockhash(&self, blockhash: &Hash) -> Result<Hash>
[src]
pub fn poll_balance_with_timeout(
&self,
pubkey: &Pubkey,
polling_frequency: &Duration,
timeout: &Duration
) -> Result<u64>
[src]
&self,
pubkey: &Pubkey,
polling_frequency: &Duration,
timeout: &Duration
) -> Result<u64>
pub fn poll_get_balance(&self, pubkey: &Pubkey) -> Result<u64>
[src]
pub fn wait_for_balance(
&self,
pubkey: &Pubkey,
expected_balance: Option<u64>
) -> Option<u64>
[src]
&self,
pubkey: &Pubkey,
expected_balance: Option<u64>
) -> Option<u64>
pub fn poll_for_signature(&self, signature: &Signature) -> Result<()>
[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
) -> Result<()>
[src]
&self,
signature: &Signature,
min_confirmed_blocks: usize
) -> Result<()>
Poll the server to confirm a transaction.
pub fn get_num_blocks_since_signature_confirmation(
&self,
sig: &Signature
) -> Result<usize>
[src]
&self,
sig: &Signature
) -> Result<usize>
pub fn fullnode_exit(&self) -> Result<bool>
[src]
pub fn retry_make_rpc_request(
&self,
request: &RpcRequest,
params: Option<Value>,
retries: usize
) -> Result<Value, Box<dyn Error>>
[src]
&self,
request: &RpcRequest,
params: Option<Value>,
retries: usize
) -> Result<Value, Box<dyn Error>>
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self
impl<T> Erased for T
impl<T, U> TryInto for T where
U: TryFrom<T>,
U: TryFrom<T>,