AptosAptos Network's breakthrough technology and seamless user experience are now available on QuickNode.

Start building today!     

Contents

getRecentPerformanceSamples RPC Method

The API credit value for this method is 1 . To learn more about API credits and each method's value, visit the API Credits page.

Parameters:

  1. limit - string - (optional) The number of samples to return (maximum 720)

Returns:

  1. result - A JSON object with the following fields:

    numSlots - The number of slots in the sample

    numTransactions - The number of transactions in the sample

    samplePeriodSecs - The number of seconds in the sample window

    slot - The slot in which the sample was taken at

Code Examples:

curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0", "id":1, "method":"getRecentPerformanceSamples", "params": [4]}'
Ready to get started? Create a free account