| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
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.
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.
| Back | FazBrowse Home | New Git URL |
Adds SQL Explorer without a Quicknode account: wallet, fund, query. The account-key path stays.
qn sql clusters and qn sql schema always hit the public catalog. Only qn sql query chooses who pays: an API key, --x402-drawdown, or --mpp-session. Config never turns a payment path on.
qn micropayments (alias pay) is the shared funding noun. qn rpc x402 and qn rpc mpp stay first-class and call the same runners.
Channel accounting on the MPP lane
The paid query saves the channel on both the success and error paths, before mapping the error:
The SDK advances channel whenever the voucher reached the gateway. Previously the CLI returned on error before saving, 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 value and was refused, stranding the channel.
Error matching
Both payment matchers now gate on the status. The body markers were ||-alternatives to the 402 check, so a 500 whose message happened to contain "insufficient" reported as an empty balance:
Docs
Dependency
Pinned to quicknode/sdk@0bd4f3c (quicknode/sdk#60), git-pinned until that crate is published. A release cannot ship from a git rev.
Closes DX-6602
Test plan
New coverage: a failed MPP query persists the receipt cumulative; sql clusters maps a catalog error to exit 2; buy-credits clears the confirmation gate with --yes; insta snapshot for the sql clusters table.