curl --request POST \
--url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "getRecentPerformanceSamples",
"params": [
5
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": [
{}
]
}curl --request POST \
--url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "getRecentPerformanceSamples",
"params": [
5
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": [
{}
]
}getRecentPerformanceSamples methodgetRecentPerformanceSamples method returns recent performance samples.
This method provides detailed information about the node’s recent performance, including the number of slots and blocks processed, and the number of slots skipped. It is useful for monitoring the node’s performance.
limit — (optional) the maximum number of performance samples to return. If not provided, the method will return all available performance samples.value — an array of performance sample objects, each containing:
numSlots — the number of slots processed.numBlocks — the number of blocks processed.numSkipped — the number of slots skipped.getRecentPerformanceSamples is to monitor the node’s performance. This can be useful for network monitoring tools or other applications that need to display or make use of this information.Was this page helpful?