跳转到主要内容
POST
/
getInflationRate
curl --request POST \
  --url https://mainnet.helius-rpc.com/ \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "getInflationRate"
}'
{
  "jsonrpc": "2.0",
  "id": "1",
  "result": {
    "total": 0.149,
    "validator": 0.148,
    "foundation": 0.001,
    "epoch": 100
  }
}

Authorizations

api-key
string
query
required

您的Helius API密钥。您可以在仪表板中免费获取一个。

Body

application/json
jsonrpc
enum<string>
default:2.0

JSON-RPC 协议版本。

Available options:
2.0
Example:

"2.0"

id
string
default:1

请求的唯一标识符。

Example:

"1"

method
enum<string>
default:getInflationRate

要调用的 RPC 方法名称。

Available options:
getInflationRate
Example:

"getInflationRate"

Response

成功检索到通货膨胀率信息。

jsonrpc
enum<string>

JSON-RPC 协议版本。

Available options:
2.0
Example:

"2.0"

id
string

与请求匹配的标识符。

Example:

"1"

result
object

当前 Solana 代币经济通胀指标的详细细分。

I