The Web3 API Service solves all the difficulties that developers encounter when integrating blockchain data into a dApp, and Chainbase will parse and extract and clean all the historical data from dozens of different blockchain networks.
The Web3 API Host for all requests is: https://api.chainbase.online/v1/
Some additional points to keep in mind:
The current version of the API is v1.
All requests require authentication.
All requests are done over HTTPS (calls over plain HTTP will fail.)
To access the Web3 API service, you need to fill in the API-KEY obtained into the Header header to complete the authentication, his field is X-API-KEY
curl -X GET 'https://api.chainbase.online/v1/:ENDPOINT/'\
-H 'X-API-KEY: YOUR-API-KEY '\
-H 'Content-Type: application/json'
Chainbase is currently in Beta, allowing for better unrestricted frequency service for early customers. By default, we have a limit of 30 requests per second for each API key.
Certain endpoints take two parameters: page and limit implementing offset-limit pagination.
page size, default 1, min 1
page limit, defautl 20, max 100, min 1
In some special filtering scenarios, you can use block distances or time intervals for filtering data.
start timestamp, min 0
end timestamp, min 0, end > start, and no more than a month
start block number, hex or int, min 0
end block number, hex or int, end > start, and no more then 172800