Repository navigation
feat(action-providers): add The Graph provider (query subgraphs directly, pay-per-query over x402) - #1358
feat(action-providers): add The Graph provider (query subgraphs directly, pay-per-query over x402)#1358PaulieB14 wants to merge 1 commit into
Conversation
🟡 Heimdall Review Status
|
|
@murrlincoln — following up with verification (like #1357), and I pushed a fix to this branch just now. While testing end-to-end I found With that in, all three actions check out against the live gateway:
CI should re-run on the two new commits. Happy to add an example-chatbot transcript if useful. Thanks for taking a look! |
|
@murrlincoln nudge here too — same status: CI green, conflict-free, MERGEABLE, awaiting review. This provider lets an agent query The Graph's subgraphs directly and pay-per-query over x402 (PayQL-powered) — no gateway keys or infra for the developer to stand up. It's the self-serve counterpart to #1357's managed tier. Glad to add an |
|
I like this as a standard for revenue generating in conjunction with pnpk and the ai chain auto drill aura-core |
…tly, pay-per-query over x402) Rebased onto latest main as a single signed commit (squashes the earlier fulltext OR-join fix + test update); prettier fixes.
fb83ec9 to
eb85184
Compare
|
Updated to latest |
Description
Adds a
thegraphaction provider that lets an agent query The Graph directly and pay per query over x402 from its own wallet — no API key, no signup. Three actions:search_subgraphs— find the best subgraph(s) for a plain-English topicget_subgraph_schema— list a subgraph's queryable entities + argsquery_subgraph— run a GraphQL query against a subgraphQuery prices are variable, so each paid action probes the gateway's 402 price, enforces a per-query
maxPaymentUsdccap, and only then signs and pays. Base-only; reuses the same x402 signing stack as the built-inx402provider, so no new dependencies. Discovery + query-construction logic is ported from PayQL (Apache-2.0).This complements #1357 (the managed
graphadvocateprovider) as the self-serve tier:graphadvocate= pay an agent that does the routing/querying for you (no setup);thegraph= query The Graph gateway directly and pay your own way (cheaper, more control). Fits WISHLIST → "Trading & Data".Tests
supportsNetwork, the EVM-wallet guard (rejects non-EVM before any network call), and the portedtoFulltext+parseHitslogic.tsc --noEmitclean; 5/5 tests pass locally in a matched (pnpm/lockfile) env.Checklist
thegraph/README.md).changeset/thegraph-action-provider.md)🤖 Generated with Claude Code