getActualPricesFeeSAll method

Future<BlockchainResponse> getActualPricesFeeSAll()

Implementation

Future<BlockchainResponse> getActualPricesFeeSAll() async {
  final res = await networkClient
      .getRequest('https://mempool.space/api/v1/fees/recommended');
  if (res.data['error'] != null) {
    return BlockchainResponse(
      data: res.data['error'],
      status: BlockchainResponses.error,
    );
  }
  return BlockchainResponse(
    data: {"data": res.data},
    status: BlockchainResponses.success,
  );
}