getDelegatedStakingActivities method

Future getDelegatedStakingActivities({
  1. required String delegatorAddress,
  2. required String poolAddress,
})

Queries delegated staking activities

Implementation

Future<dynamic> getDelegatedStakingActivities({
  required String delegatorAddress,
  required String poolAddress
}) async {
  final delegator = HexString.ensure(delegatorAddress).hex();
  final pool = HexString.ensure(poolAddress).hex();
  IndexerClient.validateAddress(delegator);
  IndexerClient.validateAddress(pool);

  final variables = {
    "delegatorAddress": delegator,
    "poolAddress": pool
  };
  return queryIndexer(document: GetDelegatedStakingActivities, variables: variables);
}