跳转到主要内容
POST
/
cURL
curl --request POST \
  --url https://mainnet.helius-rpc.com/ \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "getIndexerHealth"
}'
"ok"

Authorizations

api-key
string
query
required

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

Body

application/json
jsonrpc
enum<string>
default:2.0
required

JSON-RPC 协议的版本。

Available options:
2.0
id
string
default:1
required

用于标识请求的 ID。

method
enum<string>
default:getIndexerHealth
required

用于检查 Solana 压缩索引器健康状态的方法名称。

Available options:
getIndexerHealth

Response

Solana 压缩索引器健康并与网络同步

当 Solana 压缩索引器健康并正常运行时返回 "ok"

Available options:
ok
I