asRpcService method

RpcService asRpcService()

Turns this raw client into an rpc client that can be used to create a Web3Client:

Future<void> main() async {
  final bsc = window.BinanceChain;
  if (bsc == null) {
    print('Binance Wallet is not available');
    return;
  }

  final client = Web3Client.custom(bsc.asRpcService());
}

Implementation

RpcService asRpcService() => _BinanceWalletRpcService(this);