diff --git a/sdk/src/client/node_api/core/routes.rs b/sdk/src/client/node_api/core/routes.rs index 462338bdd9..05379506ab 100644 --- a/sdk/src/client/node_api/core/routes.rs +++ b/sdk/src/client/node_api/core/routes.rs @@ -102,10 +102,16 @@ impl ClientInner { /// future rewards for those epochs. `epochStart` and `epochEnd` indicates the actual range for which reward value /// is returned and decayed for. /// GET /api/core/v3/rewards/{outputId} - pub async fn get_output_mana_rewards(&self, output_id: &OutputId) -> Result { + pub async fn get_output_mana_rewards( + &self, + output_id: &OutputId, + slot_index: impl Into> + Send, + ) -> Result { let path = &format!("api/core/v3/rewards/{output_id}"); - self.get_request(path, None, false, false).await + let query = query_tuples_to_query_string([slot_index.into().map(|i| ("slotIndex", i.to_string()))]); + + self.get_request(path, query.as_deref(), false, false).await } // Committee routes.