Retrieves the chain ID of the current Aptos network.
Future<int> getChainId() async { final r = await provider.request(AptosRequestGetLedgerInfo()); return r.chainId; }