Future<BigInt> getChainId() async { final result = await _rpc('eth_chainId', []) as String; return BigInt.parse(result.substring(2), radix: 16); }