Introduction: Explore, Build and Use
The Data Hub serves as the foundational layer for developers to navigate, discover, and leverage a vast array of Web3 data. This guide outlines the steps to efficiently find the necessary tables, and how to use this data for creating custom APIs or utilizing prebuilt ones, facilitating a seamless integration into your Web3 applications.
Explore: Navigating the Data Hub
The Data Hub provides an intuitive interface for exploring available data sets across multiple blockchains, offering both historical and real-time data.
- Search and Filter: Use the search functionality to locate datasets by keywords, blockchain, data type (e.g., transactions, logs, traces), or abstraction type (e.g., NFT, balance). Filters can refine your search to the most relevant datasets.
- Projects: Toggle between the labels to find the table, API or query you are interested in.
- Prebuilt APIs: This is also where you can find the suite of all prebuilt APIs. Utilize 20+ GraphQL and 10+ REST APIs (explore them here). Both APIs are ready for you to use via docs, and will be onboarded to the UI shortly.
Build: Creating Custom APIs
Once you've identified the necessary data, the next step is to build APIs tailored to your application's requirements.
SQL, GraphQL, or REST APIs
- Select Data: Choose the tables or datasets you want to query. You can join multiple tables via SQL if needed.
- Transform Data: Apply transformations or aggregate data directly within the Data Hub, using SQL for precise manipulation.
- API Conversion: Convert your SQL query into a GraphQL API with a single click.
Use: Leveraging APIs
Integrating the data into your Web3 application can be done by calling the custom APIs you've created or by utilizing prebuilt APIs.
- Authentication: Ensure your API calls are authenticated with your ZettaBlock API key.
- API Documentation: Refer to this doc for prebuilt APIs and to this doc for GraphQL API builder.
Updated 9 months ago