pub fn get_rpc_url( rpc_url: Option<String>, config_path: Option<PathBuf>, chain: Option<String>, ) -> Result<String>
If rpc_url is provided, use it. Otherwise, load the network config from the config file.