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

授权

api-key
string
query
必填

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

请求体

application/json
jsonrpc
enum<string>
默认值:2.0
必填

JSON-RPC 协议的版本。

可用选项:
2.0
id
string
默认值:1
必填

用于标识请求的 ID。

method
enum<string>
默认值:getIndexerSlot
必填

要调用的方法名称。

可用选项:
getIndexerSlot

响应

成功从 Solana 压缩服务检索到当前索引器槽位

The response is of type integer.

示例:

100