asRpcService method
Turns this raw client into an rpc client that can be used to create a
Web3Client
:
Future<void> main() async {
final okx = window.okxwallet;
if (okx == null) {
print('Okx Wallet is not available');
return;
}
final client = Web3Client.custom(okx.asRpcService());
}
Implementation
RpcService asRpcService() => _OkxWalletRpcService(this);