🛠
Getting Started
To get API-KEY login to https://console.chainbase.online/
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.

URL Patterns

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.)

Authentication

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'

Rate limiting

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.

Pagination

Certain endpoints take two parameters: page and limit implementing offset-limit pagination.
name
type
desc
page
number
page size, default 1, min 1
limit
number
page limit, defautl 20, max 100, min 1

Basic filters

In some special filtering scenarios, you can use block distances or time intervals for filtering data.
name
type
desc
from_timestamp
number
start timestamp, min 0
end_timestamp
number
end timestamp, min 0, end > start, and no more than a month
from_block
string
start block number, hex or int, min 0
to_block
string
end block number, hex or int, end > start, and no more then 172800
Copy link
Outline
URL Patterns
Authentication
Rate limiting
Pagination
Basic filters