Skip to main content

v0/usage/rpc/by-chain REST API Endpoint

Retrieves usage data by chain.

Updated on
Sep 27, 2024

v0/usage/rpc/by-chain REST API Endpoint

Query Parameters

start_time
integer
Specifies the start of the time period for which the usage data is to be retrieved
end_time
integer
Specifies the end of the time period for which the usage data is to be retrieved

Returns

data
object
The data object which contains the following fields:
chains
array
An array of blockchains and their corresponding credit usage
name
string
The name of the blockchain
credits_used
integer
The number of credits used by the specified blockchain
start_time
integer
The start timestamp for the data in second in second
end_time
integer
The end timestamp for the data in second in second
error
string
A field containing an error message if any issue occurs
Request
1
curl -X 'GET' \
2
'https://api.quicknode.com/v0/usage/rpc/by-chain' \
3
-H 'accept: application/json' \
4
-H 'x-api-key: YOUR_API_KEY'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free