getRecentPerformanceSamples
Returns a list of recent performance samples, in reverse slot order. Performance samples are taken every 60 seconds and include transaction and slot information.
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: 'getRecentPerformanceSamples',
params: [],
id: 1,
}),
});
const data = await response.json();
console.log(data);
Response
Recent Performance Samples Response
Recent Performance Samples Response
array items
object slot
* integer Slot number
numTransactions
* integer Total number of transactions processed during the sample period
numSlots
* integer Number of slots in the sample period
samplePeriodSecs
* integer Sample period in seconds
numNonVoteTransactions
* integer Number of non-voting transactions processed during the sample period
additionalProperties
none JSON
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[
{
"slot": 348125,
"numTransactions": 126,
"numSlots": 126,
"samplePeriodSecs": 60,
"numNonVoteTransactions": 1
},
{
"slot": 347999,
"numTransactions": 126,
"numSlots": 126,
"samplePeriodSecs": 60,
"numNonVoteTransactions": 1
}
]