pub fn establish_connection() -> Result<Arc<RpcClient>> {
    let rpc_url = utils::get_rpc_url()?;
    Ok(Arc::new(RpcClient::new_with_commitment(
        rpc_url,
        CommitmentConfig::confirmed(),
    )))
}
/// Establishes a RPC connection with the solana cluster configured by
/// `solana config set --url <URL>`. Information about what cluster
/// has been configured is gleened from the solana config file
/// `~/.config/solana/cli/config.yml`.
Establishes a RPC connection with the solana cluster configured by
`solana config set --url `. Information about what cluster
has been configured is gleened from the solana config file
`~/.config/solana/cli/config.yml`.
Establishes a RPC connection with the solana cluster configured by ` solana config set -- url ` . Information about what cluster has been configured is gleened from the solana config file ` ~ / . config / solana / cli / config . yml ` .
pub fn establish_connection() -> Result<Arc<RpcClient>> {
    let rpc_url = utils::get_rpc_url()?;
    Ok(Arc::new(RpcClient::new_with_commitment(
        rpc_url,
        CommitmentConfig::confirmed(),
    )))
}
pub fn establish_connection ( ) -> Result < Arc < RpcClient > > { let rpc_url = utils :: get_rpc_url ( ) ? ; Ok ( Arc :: new ( RpcClient :: new_with_commitment ( rpc_url , CommitmentConfig :: confirmed ( ) , ) ) ) }
Establishes a RPC connection with the solana cluster configured by
`solana config set --url <URL>`.
Establishes a RPC connection with the solana cluster configured by ` solana config set -- url <URL > ` .