getDelegatedStakingActivities method
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);
}