Prerequisites
Before you begin, ensure you have the following:- An API key
- A REST client (e.g., Postman, curl)
Steps to Perform a Query
- Identify the endpoint URL: The base URL for the API is
https://api.data.ormilabs.com/
. - Add the endpoint path: Append the specific endpoint path to the base URL, e.g.,
/v2/{chain_name}/blocks/{block_number}
. - Include query parameters: Add any necessary query parameters to the URL, e.g.,
?param1=value1¶m2=value2
. - Set up headers: Include the required headers, such as
Authorization
with your API key. - Make the request: Use your REST client to send a GET request to the constructed URL.
Access Now
Access Data APIs Now for Free
Example - Performing a Query to Fetch ERC20 Transfers
Here is an example of a query to retrieve the token balance of a wallet address on the Ethereum mainnet:- Identify the endpoint URL by navigating to the API Reference.

- Copy and paste the required endpoint path and query parameters into the editor, then click “Send” to make the request.

- You may use any third-party tool such as curl or Postman to directly query the endpoint.

- The API Reference page also provides handy code snippets for various programming languages to help you get started.
