getBlockchainConfig method

  1. @override
Future<BlockchainConfig> getBlockchainConfig({
  1. bool force = true,
})
override

Get blockchain config or throw error

Implementation

@override
Future<BlockchainConfig> getBlockchainConfig({bool force = true}) async {
  if (_disposed) throw TransportCallAfterDisposeError();

  final config = await transport.getBlockchainConfig(force: force);

  return BlockchainConfig.fromJson(jsonDecode(config));
}