Ethereum.withConnectionParameters constructor

Ethereum.withConnectionParameters(
  1. EthereumINetworkAdapter adapter,
  2. String hostname,
  3. String scheme, [
  4. int? port = defaultHttpPort,
])

With connection parameters

Implementation

Ethereum.withConnectionParameters(
    EthereumINetworkAdapter adapter, String hostname, String scheme,
    [int? port = defaultHttpPort])
    : _networkAdapter = adapter {
  rpcClient = EthereumRpcClient(_networkAdapter);

  /// Construct the API classes
  _eth = EthereumApiEth(this);
  _admin = EthereumApiAdmin(this);
  connectParameters(scheme, hostname, port);
}