OQ — DOCS
Documentation
OnchainQueries is a read-only analytical SQL service over typed Solana event tables. It accepts a curated analytical SQL surface, translates the parts it can execute safely, and rejects anything outside the allowed catalog — 37 programs and 1,074 tables.
query loginquery sql --file query.sql --output ./resultsGetting started
Query language
OnchainQL contract
What OnchainQL accepts, what it rejects, and the read-only guarantees behind it.
Functions & execution
How OnchainQL functions execute, and the ones it deliberately does not implement.
Tables & naming
How table names resolve, the alias forms, and what the compatibility views actually cover.
Results