Skip to main content

The SDK read client

Version: V2
View Markdown

For indexed V2 reads, run a Core node and use its Query API. The pinned SDK read client calls the hosted V1 GraphQL API and is not a V2 read path.

There is no V2 GraphQL endpoint yet; one is planned for Intuition Core. The V1 GraphQL API is documented in the V1 docs.

Endpoint mapping​

getIntuitionApiUrl('mainnet' | 'testnet') selects these V1 endpoints:

SelectionEndpoint
mainnethttps://mainnet.intuition.sh/v1/graphql
testnethttps://testnet.intuition.sh/v1/graphql

The @0xintuition/sdk/api client remains part of the pinned package's public exports. Its endpoint mapping does not change when you start Core, whose Query API has a separate HTTP contract. V1 endpoints remain supported through the V1 documentation.

Scope​

The client exposes atom lookups by ID, label, or data and triple lookup by ID. It is not a general search, traversal, or write API. A label is not a unique identity. Missing rows return null; HTTP and GraphQL failures throw. See the generated API reference for the exported types and signatures.

Source: SDK endpoint constants and client interface. This page describes that pinned implementation; it does not promise a future endpoint migration.

Applies to V2 · @0xintuition/sdk 4.1.0