GraphQL API
This document provides a technical overview of the Noderr Protocol's GraphQL API, which is the recommended interface for applications that require complex and flexible data queries.
Endpoint
The GraphQL API is accessible via the following endpoint:
https://api.noderr.xyz/graphql
Schema
The complete GraphQL schema can be explored interactively using a compatible client, such as GraphiQL or Apollo Studio. This allows developers to view the available queries, mutations, and subscriptions, as well as their corresponding types and fields.
Example Query
The following is a simple example of a GraphQL query that retrieves the id, name, apy, and totalValueLocked for a specific vault:
query GetVaultData {
vault(id: "0x...") {
id
name
apy
totalValueLocked
}
}