querySubgraph
Execute GraphQL queries to retrieve blockchain data from specific subgraphs, returning results in JSON format for AI-driven analysis and integration.
Instructions
Execute a GraphQL query against a specified subgraph.
Args: subgraphId (str): The ID of the subgraph to query. query (str): The GraphQL query string to execute.
Returns: str: Query result in JSON format, or an error message.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
query | Yes | ||
subgraphId | Yes |