Skip to content

Commit

Permalink
Fixing misnamed field in the getRecentPerformanceSamples method retur…
Browse files Browse the repository at this point in the history
…n type (#422)
  • Loading branch information
disco-infinex authored Sep 4, 2024
1 parent 8b4865e commit 38fa112
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/rpc/http/getRecentPerformanceSamples.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ An array of `RpcPerfSample<object>` with the following fields:
period
- `numSlots: <u64>` - Number of slots completed during the sample period
- `samplePeriodSecs: <u16>` - Number of seconds in a sample window
- `numNonVoteTransaction: <u64>` - Number of non-vote transactions processed
- `numNonVoteTransactions: <u64>` - Number of non-vote transactions processed
during the sample period.

<Callout type={"info"}>
`numNonVoteTransaction` is present starting with v1.15. To get a number of
`numNonVoteTransactions` is present starting with v1.15. To get a number of
voting transactions compute:
<br />
`numTransactions - numNonVoteTransaction`
`numTransactions - numNonVoteTransactions`
</Callout>

</DocLeftSide>
Expand All @@ -65,28 +65,28 @@ curl https://api.devnet.solana.com -X POST -H "Content-Type: application/json" -
{
"numSlots": 126,
"numTransactions": 126,
"numNonVoteTransaction": 1,
"numNonVoteTransactions": 1,
"samplePeriodSecs": 60,
"slot": 348125
},
{
"numSlots": 126,
"numTransactions": 126,
"numNonVoteTransaction": 1,
"numNonVoteTransactions": 1,
"samplePeriodSecs": 60,
"slot": 347999
},
{
"numSlots": 125,
"numTransactions": 125,
"numNonVoteTransaction": 0,
"numNonVoteTransactions": 0,
"samplePeriodSecs": 60,
"slot": 347873
},
{
"numSlots": 125,
"numTransactions": 125,
"numNonVoteTransaction": 0,
"numNonVoteTransactions": 0,
"samplePeriodSecs": 60,
"slot": 347748
}
Expand Down

0 comments on commit 38fa112

Please sign in to comment.