Skip to content

SubgraphConfig

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

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:141

Optional API key for authenticated subgraph access


optional endpoint: string;

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

Direct GraphQL endpoint URL. Takes precedence if provided.


optional goldsky: object;

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

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

projectId: string;
subgraphName: string;
version: string;