Web3Client constructor
Web3Client(
- String url,
- Client httpClient, {
- SocketConnector? socketConnector,
Starts a client that connects to a JSON rpc API, available at url
. The
httpClient
will be used to send requests to the rpc server.
Am isolate will be used to perform expensive operations, such as signing
transactions or computing private keys.
Implementation
Web3Client(String url, Client httpClient, {SocketConnector? socketConnector})
: this.custom(JsonRPC(url, httpClient), socketConnector: socketConnector);