> For the complete documentation index, see [llms.txt](https://docs.bancor.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bancor.network/developer-guides/read-functions/rewards/standard-rewards/latestprogramid.md).

# latestProgramId()

### Function latestProgramId()

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

```javascript
function latestProgramId(Token pool) external view returns (uint256)
```

{% endcode %}

This function is used to find the ID of the rewards program for a given token.&#x20;

### Function Arguments

| Name | Type  | Description          |
| ---- | ----- | -------------------- |
| pool | Token | The token's address. |

### Return Variables

This function returns the ID of the latest rewards program for the given token.

| Variable Type | Returns                        |
| ------------- | ------------------------------ |
| uint256       | The ID of the rewards program. |

Example response:

`uint256`` `**`:`**`  ``1`
