Visitar URL original
Comparing main...dx-6602-add-x402mpp-support-for-sql-explorer · quicknode/cli · GitHub
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: quicknode/cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: quicknode/cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dx-6602-add-x402mpp-support-for-sql-explorer
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 19 files changed
  • 1 contributor

Commits on Aug 24, 2026

  1. feat(sql): add x402 and MPP payment lanes (DX-6602)

    SQL Explorer can run without an account: clusters and schema stay
    public, and query pays with x402 drawdown or an MPP session.
    qn micropayments (alias pay) shares the existing x402 and mpp runners.
    johnpmitsch committed Aug 24, 2026
    Configuration menu
    Copy the full SHA
    87f7059 View commit details
    Browse the repository at this point in the history
  2. fix(sql): persist a banked MPP voucher when the query fails

    The MPP query path returned on error before saving the channel, so a
    query that failed after the gateway banked the voucher left the cached
    cumulative behind the gateway's accepted value. The next query re-signed
    that stale cumulative and was refused, stranding the channel. The SDK
    now advances the channel whenever the voucher reached the gateway, and
    this saves it on both paths before mapping the error.
    
    Also gates the credit and channel error matchers on a 402: the body
    markers were alternatives to the status check, so a 500 whose message
    happened to contain "insufficient" reported as an empty balance.
    
    Docs: SQL has no per-request --x402 flag, so context.md no longer claims
    it is rejected; the no-payer query is documented as exit 1, since a key
    is one of three ways to pay; drops an absence-of-feature line from the
    README MPP intro.
    
    Tests: a failed query persists the receipt cumulative, sql clusters maps
    a catalog error to exit 2, buy-credits clears the gate with --yes, and a
    clusters table snapshot.
    johnpmitsch committed Aug 24, 2026
    Configuration menu
    Copy the full SHA
    f36cfd4 View commit details
    Browse the repository at this point in the history
Loading