getClusterNodes
Returns information about all the nodes participating in the cluster.
https://api.1inch.com/web3/501
Supported on: Solana
Request
Request
object jsonrpc
* string (Enum)JSON-RPC version
2.0
method
* string The method to call
params
array Method parameters
items
any id
* number Request ID
JavaScript
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const response = await fetch('https://api.1inch.com/web3/501', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${API_KEY}`,
},
body: JSON.stringify({
jsonrpc: '2.0',
method: 'getClusterNodes',
params: [],
id: 1,
}),
});
const data = await response.json();
console.log(data);
Response
Cluster Nodes Response
Cluster Nodes Response
array items
object featureSet
any oneOf[0]
null oneOf[1]
integer gossip
any oneOf[0]
null oneOf[1]
string pubkey
* string Node identity public key
rpc
any oneOf[0]
null oneOf[1]
string shredVersion
any oneOf[0]
null oneOf[1]
integer tpu
any oneOf[0]
null oneOf[1]
string version
any oneOf[0]
null oneOf[1]
string additionalProperties
none JSON
Copy
1
2
3
4
5
6
7
8
9
10
11
12
[
{
"featureSet": 3073396398,
"gossip": "10.239.6.48:8001",
"pubkey": "9QzsJf7LPLj8GkXbYT3LFDKqsj2hHG7TA3xinJHu8epQ",
"rpc": "10.239.6.48:8899",
"shredVersion": 2405,
"tpu": "10.239.6.48:8856",
"version": "1.0.0 c375ce1f"
}
]