GraphX API Quick Start
GraphX: a real-time and flexible Web3 relationship graph network designed for graph-based queries
Introduction
KNN3 Network is a one-stop Web3 User-centric DataFi solution for d/Apps and smart contracts. KNN3 allows d/Apps & smart contracts to interact with cross-platform user-centric data in multiple algo-friendly ways.
If you are a Web3 d/App builder or a web3-native data analyst, GraphX is something you should look into. GraphX contains plenty of relational data among users, assets & communities, these relationships are fully backed by web3 users' live on-chain activities.
Graphql Endpoint: https://master.graphql.knn3.xyz/graphql
Please note that the address must be in lowercase, otherwise the correct result will not be returned.
Start with your first query
A sample query to explore NFTs held by a given address.
Sample code
The following result only shows a fragment of NFTs. To see the complete data result, you can visit the link above and try it yourself.
Limit
To help manage the sheer volume of the requests we receive on our api, limits are placed on the number of requests that can be made. These limits help us provide the reliable and scalable API that our developer community relies on.
For a better user experience, there is a limit=10 for each query by default. You can modify this parameter to a maximum of 30 items for each query.
If you require a higher limit, please contact us at builder@knn3.xyz and we will be happy to assist you.
Pagination
Like most GraphQL queries, you can specify pagination queries through the options parameter:
Aggregate Query
You can use aggregate queries in the form of xxxAggregate to obtain the likes of count data. See below for an example where the total number of addresses is queried.
Last updated