The Graph Documentation

website·Indexed 39 days ago

https://thegraph.com/docs/en/

Documentation for The Graph's data services, including Subgraphs and Substreams, featuring usage-based pricing plans with no required commitment.

Tokens
625
Snippets
1
Records
6
Agent score
24%

What's inside The Graph

  1. Request Substreams documentation in Markdown format

    To ensure you receive structured content from the Substreams documentation, prefer using URLs that end in .md (e.g., /readme.md). Alternatively, you can use the Accept: text/markdown HTTP header for content negotiation.
  2. Manage payments for The Graph services

    Payment methods vary by the service being used:

    • Credit Card: Supported for both Subgraph Studio (Subgraphs) and The Graph Market (Substreams).
    • Crypto (GRT): Supported specifically in Subgraph Studio.
  3. Query Substreams documentation using the 'ask' parameter

    You can retrieve direct answers and relevant documentation excerpts by performing an HTTP GET request on the documentation index using the ask parameter. The ask parameter should be a specific, self-contained question in natural language. Optionally, use the goal parameter to describe the broader objective, which helps tailor the response.
    GET https://docs.substreams.dev/readme.md?ask=<question>&goal=<end_goal>
  4. Access the full Substreams documentation corpus and index

    For developers or AI agents needing to perform bulk retrieval or discover the documentation structure, Substreams provides two primary endpoints:

    1. Sitemap: A full index of valid page paths available at https://docs.substreams.dev/sitemap.md.
    2. Full Export: The entire documentation corpus in a single text file available at https://docs.substreams.dev/llms-full.txt.
  5. Understand Subgraph querying pricing

    Subgraphs provide custom open APIs for indexing and querying blockchain data via GraphQL. Billing is managed in Subgraph Studio.

    • Free Tier: $0/month, includes 100,000 queries per month. Subgraph creation is unlimited.
    • Usage-based (Beyond Free Tier): $2 per 100,000 queries.
    • Example: 300,000 queries per month costs $4 (first 100k free, remaining 200k billed at $2/100k).
    • Note: Subgraphs published directly on The Graph Network are paid in GRT to Indexers.
  6. Understand Substreams pricing and plans

    Substreams provide high-performance blockchain data streaming served through a provider marketplace at The Graph Market. Pricing is usage-based and varies by provider and network.

    PlanPriceProcessed Blocks IncludedEgress IncludedParallel WorkersConcurrent Streams
    Free$0/month7M5 GiB52
    Scaling$100/month155M500 GiB155
    Pro$500/month400M2 TiB7520
    EnterpriseCustomVolume discountsSLAsUp to 300Up to 200

    Additional Overages:

    • Scaling Plan: $3.00 per additional million blocks; $175 per additional 1 TiB egress.
    • Pro Plan: $1.75 per additional million blocks; $150 per additional 1 TiB egress.