getSubgraphSDK(chainId: ChainId)
This function retrieves the GraphQL client for interacting with the specified chain's subgraph. The client exposes the client-side queries with filtering and pagination features.
Parameters
chainId
: The ID of the blockchain network.
Returns
An instance of the GraphQL client configured with the appropriate subgraph API endpoint.
Usage Example
const subgraphSdk = sdk.getSubgraphSDK(11155111);