# Our Endpoints

### Reward Program Staked USD Values

<mark style="color:blue;">`GET`</mark> `http://crucible.wtf/api/get-program-staked-usd`

This endpoint will return a JSON object of Reward Programs and the Total Staked Value in USD for each program.<br>

Example GET request (Mainnet):

\`<http://crucible.wtf/api/get-program-staked-usd?network=1>\`

#### Query Parameters

| Name                                      | Type   | Description                                                                                             |
| ----------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------- |
| network<mark style="color:red;">\*</mark> | String | <p>Network ID that data is required for</p><p></p><p>e.g:</p><p>1 = Mainnet</p><p>41334 = Avalanche</p> |

{% tabs %}
{% tab title="200: OK Endpoint will return an array of reward programs and their total staked USD values" %}

```javascript
[{
    rewardProgramAddress, totalStakedUSD
}]
```

{% endtab %}
{% endtabs %}

### Reward Program Reward USD Values

<mark style="color:blue;">`GET`</mark> `http://crucible.wtf/api/get-program-rewards-usd`

This endpoint will return a JSON object of Reward Programs and the Total Rewards Value (of all tokens in the pool) in USD for each program.<br>

Example GET request (Mainnet):

\`<http://crucible.wtf/api/get-program-rewards-usd?network=1>\`

#### Query Parameters

| Name    | Type   | Description                                                                                             |
| ------- | ------ | ------------------------------------------------------------------------------------------------------- |
| network | String | <p>Network ID that data is required for</p><p></p><p>e.g:</p><p>1 = Mainnet</p><p>41334 = Avalanche</p> |

{% tabs %}
{% tab title="200: OK Endpoint will return an array of reward programs and their total rewards (of all tokens within the pool) in USD values" %}

```javascript
[{
    rewardProgramAddress, totalRewardsUSD
}]
```

{% endtab %}
{% endtabs %}
