⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins
sol
Solana (SOL)

Method: POST getRecentPerformanceSamples

dropdown

# getRecentPerformanceSamples example for Solana (SOL)

POST getRecentPerformanceSamples

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)

Request

curl --location --request POST 'https://sol.getblock.io/mainnet' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "getRecentPerformanceSamples",
"params": [5],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": [
        {
            "numSlots": 67,
            "numTransactions": 93740,
            "samplePeriodSecs": 60,
            "slot": 123033855
        },
        {
            "numSlots": 65,
            "numTransactions": 110881,
            "samplePeriodSecs": 60,
            "slot": 123033788
        },
        {
            "numSlots": 77,
            "numTransactions": 118107,
            "samplePeriodSecs": 60,
            "slot": 123033723
        },
        {
            "numSlots": 69,
            "numTransactions": 107724,
            "samplePeriodSecs": 60,
            "slot": 123033646
        },
        {
            "numSlots": 68,
            "numTransactions": 87990,
            "samplePeriodSecs": 60,
            "slot": 123033577
        }
    ]
}