# getInflationRate

Returns the specific inflation values for the current epoch.

#### Parameters required for this RPC call

No parameters required.

{% tabs %}
{% tab title="cURL" %}

<pre class="language-bash"><code class="lang-bash">curl https://rpc.shyft.to?api_key=YOUR-API-KEY -s -X \
<strong>  POST -H "Content-Type: application/json" -d ' 
</strong>   {
     "jsonrpc": "2.0",
     "id": 1,
     "method": "getInflationRate"
   }
 '
</code></pre>

{% endtab %}

{% tab title="Web3.js" %}

```javascript
import { Connection, PublicKey, clusterApiUrl } from "@solana/web3.js";

const connection = new Connection("https://rpc.shyft.to?api_key=YOUR-API-KEY", "confirmed");

let inflationRate = await connection.getInflationRate();

console.log(inflationRate);
```

{% endtab %}

{% tab title="Response" %}

```json
{
  "jsonrpc": "2.0",
  "result": {
    "total": 0.149, // Total inflation
    "validator": 0.148, // Inflation allocated to validators
    "foundation": 0.001, // Inflation allocated to the foundation
    "epoch": 100 // Epoch for which these values are valid
  },
  "id": 1
}
```

{% endtab %}
{% endtabs %}
