solana/docs/src/api/methods/_getInflationGovernor.mdx

76 lines
1.4 KiB
Plaintext

import {
DocBlock,
DocSideBySide,
CodeParams,
Parameter,
Field,
Values,
CodeSnippets,
} from "../../../components/CodeDocBlock";
<DocBlock>
## getInflationGovernor
Returns the current inflation governor
<DocSideBySide>
<CodeParams>
### Parameters:
<Parameter type={"object"} optional={true}>
Configuration object containing the following fields:
<Field
name="commitment"
type="string"
optional={true}
href="/api/http#configuring-state-commitment"
></Field>
</Parameter>
### Result:
The result field will be a JSON object with the following fields:
- `initial: <f64>` - the initial inflation percentage from time 0
- `terminal: <f64>` - terminal inflation percentage
- `taper: <f64>` - rate per year at which inflation is lowered. (Rate reduction is derived using the target slot time in genesis config)
- `foundation: <f64>` - percentage of total inflation allocated to the foundation
- `foundationTerm: <f64>` - duration of foundation pool inflation in years
</CodeParams>
<CodeSnippets>
### Code sample:
```bash
curl http://localhost:8899 -X POST -H "Content-Type: application/json" -d '
{"jsonrpc":"2.0","id":1, "method":"getInflationGovernor"}
'
```
### Response:
```json
{
"jsonrpc": "2.0",
"result": {
"foundation": 0.05,
"foundationTerm": 7,
"initial": 0.15,
"taper": 0.15,
"terminal": 0.015
},
"id": 1
}
```
</CodeSnippets>
</DocSideBySide>
</DocBlock>