# programIds()

### Function StandardRewards.sol()

{% code title="StandardRewards.sol" %}

```javascript
function programIds() external view returns (uint256[] memory)
```

{% endcode %}

This function is used to get a list of all reward program IDs.&#x20;

### Return Variables

This function returns a list of all reward program IDs.

| Variable Type | Returns                                                                                                                       |
| ------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| uint256\[]    | <p>The returned list includes IDs for each reward program.<br><br>Example response:<br><code>1, 2, 3, 4 uint256\[]</code></p> |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bancor.network/developer-guides/read-functions/rewards/standard-rewards/programids.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
