getRecentPerformanceSamples RPC Method
Returns a list of recent performance samples, in reverse slot order. Performance samples are taken every 60 seconds and include the number of transactions and slots that occur in a given time window.
Parameters
limit usize
optional
number of samples to return (maximum 720)
Result
An array of RpcPerfSample<object>
with the following fields:
slot: <u64>
- Slot in which sample was taken atnumTransactions: <u64>
- Number of transactions processed during the sample periodnumSlots: <u64>
- Number of slots completed during the sample periodsamplePeriodSecs: <u16>
- Number of seconds in a sample windownumNonVoteTransactions: <u64>
- Number of non-vote transactions processed during the sample period.
Info
numNonVoteTransactions
is present starting with v1.15. To get a number of
voting transactions compute:
numTransactions - numNonVoteTransactions