GraphQL API Overview
Loading diagram...
Intuition provides a GraphQL API for querying its knowledge graph in a convenient and versatile way. There are a few ways to get started with this GraphQL API, depending on the level of abstraction and customization you require.
If this is your first time using GraphQL, you can learn more at graphql.org.
Until mainnet launch, the Intuition team hosts an open GraphQL API powered by Hasura, which may be accessed at https://testnet.intuition.sh/v1/graphql. For more information about running the backend yourself, visit Run an Intuition node.
SDK
Integrate with Intuition smart contracts using our TypeScript SDK.
Custom Queries
Create bespoke GraphQL queries for your specific use case.
GraphQL Package
Install it with NPM
Install and use the NPM package with ready-made React Query hooks.
Use it as a GraphQL Generator
Use the GraphQL package to generate your own queries and mutations.
Interactive Playground
Try the Intuition GraphQL API straight from your browser! The playground below connects to the live testnet endpoint and allows you to explore the knowledge graph in real time.
Query
query GetAtoms {
atoms(limit: 10, order_by: { created_at: desc }) {
term_id
label
emoji
type
image
created_at
block_number
creator {
id
label
}
}
}Variables
Click "Run Query" to execute the GraphQL query and see results