RAILGUN Reloaded
    Preparing search index...

    Client for interacting with the Subsquid GraphQL API

    Index
    • Generic request method for GraphQL queries using fetch with type safety

      Parameters

      • query: RequestOptions

        The GraphQL query options

        • query

          The GraphQL query string to execute

        • operationName

          Optional name of the GraphQL operation

        • variables

          Optional variables to pass to the query

        • extensions

          Optional extensions to pass to the query

      Returns Promise<unknown>

      Promise that resolves to the query result

    • Generic query method that can handle any entity type with proper type safety

      Type Parameters

      Parameters

      • input: StrictQueryInput<T>

        The query input to build and execute

      Returns Promise<QueryOutput<T>>

      Promise that resolves to the query result