pub fn new_with_timeouts_and_commitment(
        url: String,
        timeout: Duration,
        commitment_config: CommitmentConfig,
        confirm_transaction_initial_timeout: Duration,
    ) -> Self {
        Self::new_sender(
            HttpSender::new_with_timeout(url, timeout),
            RpcClientConfig {
                commitment_config,
                confirm_transaction_initial_timeout: Some(confirm_transaction_initial_timeout),
            },
        )
    }
/// Create an HTTP `RpcClient` with specified timeout and commitment level.
///
/// The URL is an HTTP URL, usually for port 8899, as in
/// "http://localhost:8899".
///
/// The `confirm_transaction_initial_timeout` argument specifies, when
/// confirming a transaction via one of the `_with_spinner` methods, like
/// [`RpcClient::send_and_confirm_transaction_with_spinner`], the amount of
/// time to allow for the server to initially process a transaction. In
/// other words, setting `confirm_transaction_initial_timeout` to > 0 allows
/// `RpcClient` to wait for confirmation of a transaction that the server
/// has not "seen" yet.
///
/// # Examples
///
/// ```
/// # use std::time::Duration;
/// # use solana_client::rpc_client::RpcClient;
/// # use solana_sdk::commitment_config::CommitmentConfig;
/// let url = "http://localhost::8899".to_string();
/// let timeout = Duration::from_secs(1);
/// let commitment_config = CommitmentConfig::processed();
/// let confirm_transaction_initial_timeout = Duration::from_secs(10);
/// let client = RpcClient::new_with_timeouts_and_commitment(
///     url,
///     timeout,
///     commitment_config,
///     confirm_transaction_initial_timeout,
/// );
/// ```
Create an HTTP `RpcClient` with specified timeout and commitment level.


Create an HTTP ` RpcClient ` with specified timeout and commitment level .
pub fn new_with_timeouts_and_commitment(
        url: String,
        timeout: Duration,
        commitment_config: CommitmentConfig,
        confirm_transaction_initial_timeout: Duration,
    ) -> Self {
        Self::new_sender(
            HttpSender::new_with_timeout(url, timeout),
            RpcClientConfig {
                commitment_config,
                confirm_transaction_initial_timeout: Some(confirm_transaction_initial_timeout),
            },
        )
    }
pub fn new_with_timeouts_and_commitment ( url : String , timeout : Duration , commitment_config : CommitmentConfig , confirm_transaction_initial_timeout : Duration , ) -> Self { Self :: new_sender ( HttpSender :: new_with_timeout ( url , timeout ) , RpcClientConfig { commitment_config , confirm_transaction_initial_timeout : Some ( confirm_transaction_initial_timeout ) , } , ) }
Create an HTTP `RpcClient` with specified timeout and commitment level.
Create an HTTP ` RpcClient ` with specified timeout and commitment level .
url
String
timeout
Duration
commitment_config
CommitmentConfig
confirm_transaction_initial_timeout
Duration
url
String
timeout
Duration
commitment_config
CommitmentConfig
confirm_transaction_initial_timeout
Duration
examples
None
use std::time::duration;
None
use solana_client::rpc_client::rpcclient;
None
use solana_sdk::commitment_config::commitmentconfig;
None