---
title: getInflationGovernor
description: >-
  Returns the inflation governor parameters active at the requested commitment.
url: /docs/rpc/http/getinflationgovernor
type: reference
hideTableOfContents: true
---

Returns the inflation governor parameters active at the requested commitment.

<Callout type="info" title="Source">
  [`get_inflation_governor`](https://github.com/anza-xyz/agave/blob/v3.1.8/rpc/src/rpc.rs#L890)
</Callout>

<APIMethod>

```jsonc !!request curl
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getInflationGovernor",
  "params": [
    // !hover(1:3) config
    {
      // !hover commitment
      "commitment": "finalized"
    }
  ]
}
```

```ts !!request title="Kit"
import { createSolanaRpc, type Commitment } from "@solana/kit";

const rpc_url = "https://api.devnet.solana.com";
const rpc = createSolanaRpc(rpc_url);

// !hover commitment
let commitment: Commitment = "finalized";
let inflationGovener = await rpc.getInflationGovernor({ commitment }).send();

console.log(inflationGovener);
```

```ts !!request title="web3.js"
import { Connection, clusterApiUrl } from "@solana/web3.js";

const connection = new Connection(clusterApiUrl("devnet"), "confirmed");

// !hover commitment
let commitment = "finalized";
let inflationGovener = await connection.getInflationGovernor();

console.log(inflationGovener);
```

```rs !!request title="Rust"
use anyhow::Result;
use solana_client::nonblocking::rpc_client::RpcClient;
use solana_commitment_config::CommitmentConfig;

#[tokio::main]
async fn main() -> Result<()> {
    let client = RpcClient::new_with_commitment(
        String::from("https://api.devnet.solana.com"),
        CommitmentConfig::confirmed(),
    );

    let inflation_govener = client.get_inflation_governor().await?;

    println!("{:#?}", inflation_govener);

    Ok(())
}
```

### !params

#### !! config

!type object  
!optional

Configuration object.

##### !! commitment

!type string  
!values processed confirmed finalized  
!default finalized

Solana RPC uses the following commitment levels:

| Value       | Description                                                                                                                                                                                                                                                                |
| ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `processed` | Return data from the highest slot this node has processed on the fork it currently considers best. This is the newest view, but it can still change if the cluster switches forks.                                                                                         |
| `confirmed` | Return data from the highest slot that at least two-thirds of active stake has directly voted to confirm. This is more stable than `processed`, but it is still a weaker guarantee than `finalized`.                                                                       |
| `finalized` | Return data from the highest slot that the cluster recognizes as finalized. In practice, this means the slot has reached maximum vote lockout in validators' vote towers and is recognized by at least two-thirds of active stake. This is the strongest commitment level. |

### !!result

```jsonc !response
{
  "jsonrpc": "2.0",
  // !hover(1:7) result
  "result": {
    // !hover foundation
    "foundation": 0.05,
    // !hover foundationTerm
    "foundationTerm": 7,
    // !hover initial
    "initial": 0.15,
    // !hover taper
    "taper": 0.15,
    // !hover terminal
    "terminal": 0.015
  },
  "id": 1
}
```

!type object

The result field will be a JSON object with the following fields:

##### !! foundation

!type f64

Percentage of total inflation allocated to the foundation

##### !! foundationTerm

!type f64

Duration of foundation pool inflation in years

##### !! initial

!type f64

Initial inflation percentage from time 0

##### !! taper

!type f64

Rate per year at which inflation is lowered. (Rate reduction is derived using
the target slot time in genesis config)

##### !! terminal

!type f64

Terminal inflation percentage

</APIMethod>
