collectResearchPoints method

Future<void> collectResearchPoints()

collect research points

Implementation

Future<void> collectResearchPoints() async {
  confirmInitialized();

  var found = items.where((i) =>
      i.templateId ==
      "CollectedResource:Token_collectionresource_nodegatetoken01");

  if (found.isEmpty) {
    throw Exception("No research collector found.");
  }

  return await client.post(
    MCP(profileId, accountId: client.accountId).ClaimCollectedResources,
    body: {
      "collectorsToClaim": [found.first.id],
    },
  );
}