Skip to content

SubgraphConfig

Defined in: packages/synapse-sdk/src/types.ts:141

Configuration for the SubgraphService, determining how to connect to a Synapse-compatible subgraph for provider discovery.

optional apiKey: string

Defined in: packages/synapse-sdk/src/types.ts:151

Optional API key for authenticated subgraph access


optional endpoint: string

Defined in: packages/synapse-sdk/src/types.ts:143

Direct GraphQL endpoint URL. Takes precedence if provided.


optional goldsky: object

Defined in: packages/synapse-sdk/src/types.ts:145

Configuration for Goldsky subgraphs. Used if ‘endpoint’ is not provided.

projectId: string

subgraphName: string

version: string