Create a new HTTP JSON-RPC client with given url.
(url: &str)
| 32 | |
| 33 | /// Create a new HTTP JSON-RPC client with given url. |
| 34 | fn get_client(url: &str) -> Result<HttpClient> { |
| 35 | HttpClientBuilder::default() |
| 36 | .build(url) |
| 37 | .map_err(|e| Web3Error::ClientError(e.to_string())) |
| 38 | } |
| 39 | |
| 40 | /// Send a RPC call with the given method and parameters. |
| 41 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected