Subgraph
Querying historical on-chain event data through the Goldsky-indexed GraphQL endpoint.
Overview
Accessing the Subgraph Client
import { DelphiClient } from "@gensyn-ai/gensyn-delphi-sdk";
const client = new DelphiClient();
const subgraph = client.getSubgraph();URL Resolution Order
Network
Default endpoint
SubgraphClient API
query(query, variables?)
getMarketTrades(marketProxy, params?)
getMeta()
Types
SubgraphBuy
SubgraphSell
SubgraphMeta
GraphQL Schema Entities
Entity
Singular query
Collection query
Description
Entity Fields
Common Fields (All Entities)
Field
Type
Description
Additional Fields (Specific Entities)
Collection Query Parameters
Parameter
Type
Description
Filtering (where clause)
Suffix
Operator
Example
Usage Examples
1. Listing recent trades for a given market
2. Querying global recent buys
3. Filtering buys by wallet address
4. Filtering buys by time range
5. Querying redemptions for a given market
6. Querying winner submissions
7. Checking subgraph indexing status
8. Pagination
9. Parsing subgraph values
Last updated