Skip to main content
POST
/
getIndexerSlot
cURL
curl --request POST \
  --url https://devnet.helius-rpc.com/getIndexerSlot \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "test-account",
  "jsonrpc": "2.0",
  "method": "getIndexerSlot"
}
'
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({id: 'test-account', jsonrpc: '2.0', method: 'getIndexerSlot'})
};

fetch('https://devnet.helius-rpc.com/getIndexerSlot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://devnet.helius-rpc.com/getIndexerSlot"

payload = {
"id": "test-account",
"jsonrpc": "2.0",
"method": "getIndexerSlot"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "id": "test-account",
  "jsonrpc": "2.0",
  "error": {
    "code": 123,
    "message": "<string>"
  },
  "result": 100
}
{
"error": {
"code": 123,
"message": "<string>"
},
"id": "<string>",
"jsonrpc": "<string>"
}
{
"error": {
"code": 123,
"message": "<string>"
},
"id": "<string>",
"jsonrpc": "<string>"
}

Body

application/json
id
enum<string>
required

An ID to identify the request.

Available options:
test-account
jsonrpc
enum<string>
required

The version of the JSON-RPC protocol.

Available options:
2.0
method
enum<string>
required

The name of the method to invoke.

Available options:
getIndexerSlot

Response

id
enum<string>
required

An ID to identify the response.

Available options:
test-account
jsonrpc
enum<string>
required

The version of the JSON-RPC protocol.

Available options:
2.0
error
object
result
integer<uint64>
default:100
Example:

100