diff --git a/source/features/rewards/api/README.md b/source/features/rewards/api/README.md new file mode 100644 index 00000000..55a491c7 --- /dev/null +++ b/source/features/rewards/api/README.md @@ -0,0 +1 @@ +Present to be included in the list of allowed queries. diff --git a/source/features/rewards/api/getRewardsForAddresses.graphql b/source/features/rewards/api/getRewardsForAddresses.graphql new file mode 100644 index 00000000..5f63d7b8 --- /dev/null +++ b/source/features/rewards/api/getRewardsForAddresses.graphql @@ -0,0 +1,22 @@ +query getRewardsForAddresses ( + $addresses: [StakeAddress!]! + $limit: Int + $offset: Int + $order_by: [Reward_order_by!] +) { + rewards( + limit: $limit + offset: $offset + order_by: $order_by + where: { address: { _in: $addresses }} + ) { + address + amount + earnedIn { + number + } + stakePool { + id + } + } +}