getChainId method

Future<int> getChainId()

Returns chain id in int

Implementation

Future<int> getChainId() async =>
    int.parse((await request('eth_chainId')).toString());