Reference Documentation
Proof of SQL Syntax
Proof of SQL requires cryptographic proofs for query results. This reference covers what SQL features are provable—not just what parses successfully.
Capability profile: Centralized EVM Proof Planner via commitments_v1_evmProofPlan. Upstream specification. Last verified 2026-07-13.
Quick Reference
At-a-glance view of what's provable in Proof of SQL
| Feature | Status | |
|---|---|---|
| SELECT & FROM | ||
| SELECT columns | Supported | |
| SELECT * | Supported | |
| LIMIT / OFFSET | Supported | |
| SELECT DISTINCT | Partial | |
| WHERE Clause | ||
| =, !=, <, >, <=, >= | Supported | |
| AND, OR, NOT | Supported | |
| BETWEEN / NOT BETWEEN | Supported | |
| IN / NOT IN value lists | Supported | |
| LIKE / ILIKE | Not Supported | |
| IS NULL | Not Supported | |
| Aggregation | ||
| GROUP BY | Partial | |
| SUM() | Supported | |
| COUNT() | Supported | |
| COUNT(DISTINCT) / SUM(DISTINCT) | Partial | |
| AVG(), MIN(), MAX() | Not Supported | |
| HAVING | Supported | |
| Joins & Unions | ||
| INNER JOIN | Partial | |
| LEFT / RIGHT / FULL JOIN | Not Supported | |
| UNION ALL | Supported | |
| UNION (distinct) | Partial | |
| Advanced | ||
| Query parameters ($1, $2) | Supported | |
| ORDER BY | Not Supported | |
| Subqueries | Partial | |
| CTEs (WITH clause) | Not Supported | |
| Window functions | Not Supported | |
| Division (/) | Not Supported | |
| Scalar functions | Not Supported | |
Detailed Reference
Test Your Query
Always verify your query via the RPC endpoint before deploying. If you receive an error, the query is not provable.
bash
curl -X POST https://rpc.mainnet.sxt.network \ -H "Content-Type: application/json" -d '{ "jsonrpc": "2.0", "id": 1, "method": "commitments_v1_evmProofPlan", "params": { "query": "SELECT NAME FROM NAMESPACE.TABLE WHERE ID = 1" } }'Response Interpretation
Success
Response contains "proofPlan": "0x..."
Failure
Response contains "error" with details