getinflationrate

Solana RPC

Archive Method

Only on the full archive nodes. Complex queries might take longer and incur additional cost

How to Use It

// yarn add @tatumio/tatum

import { TatumSDK, Solana, Network } from '@tatumio/tatum'

const tatum = await TatumSDK.init<Solana>({ network: Network.SOLANA })

const res = await tatum.rpc.getInflationRate()

await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs

Overview

The getInflationRate method is used to retrieve the specific inflation values for the current epoch in the Solana blockchain.

Parameters

No parameters are required for this method.

Return Object

The method returns a JSON object with the following fields:

  • total: Total inflation rate.
  • validator: Inflation allocated to validators.
  • foundation: Inflation allocated to the foundation.
  • epoch: The epoch for which these values are valid.

JSON-RPC Request Example

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getInflationRate"
}

JSON-RPC Response Example

{
  "jsonrpc": "2.0",
  "result": {
    "epoch": 100,
    "foundation": 0.001,
    "total": 0.149,
    "validator": 0.148
  },
  "id": 1
}