Méthode RPC getInflationGovernor

Renvoie le gouverneur d'inflation actuel

$ curl https://api.devnet.solana.com -s -X \
> POST -H "Content-Type: application/json" -d '
> {
> "jsonrpc": "2.0",
> "id": 1,
> "method": "getInflationGovernor",
> "params": [
> {
> "commitment": "finalized"
> }
> ]
> }
> '

params

objectoptional

Objet de configuration.

result

Response
{
"jsonrpc": "2.0",
"result": {
"foundation": 0.05,
"foundationTerm": 7,
"initial": 0.15,
"taper": 0.15,
"terminal": 0.015
},
"id": 1
}
object

Le champ de résultat sera un objet JSON avec les champs suivants :

Is this page helpful?