OQ — S30 · For developers & data teams
OnchainQueries is a read-only SQL service with a CLI, a control API and two result transports. It is designed to sit upstream of your warehouse, not replace it.
- Transports
- 2
- Parameter types
- 13
- Checksum
- SHA-256
- Request limit
- 2 MiB
Everything the CLI does is available over the same public control API.
A single-table projection with no grouping, ordering or joins, that includes ts, can be split into independent daily tasks. That is the fastest way to move a lot of rows.
SELECT ts, slot, sig, mint, sol_amountFROM pump_fun.trade_eventWHERE ts >= {{start_time}} AND ts < {{end_time}};Can I run this on a schedule?
Yes. The CLI is a normal binary that exits nonzero on failure, so cron, Airflow, Dagster or GitHub Actions all work. Pin an explicit engine class so selection does not change when someone reformats the SQL.
How do I keep credentials out of CI logs?
CARBON_ENDPOINT and CARBON_API_TOKEN are read from the environment. Use your platform's secret store; never put a token in a committed script.
What is the largest query I can submit?
Submit requests, including SQL and parameter JSON, are capped at 2 MiB. Execution time is bounded by the engine class — up to 6 hours on large.
Typed parameters, verified parts, and a manifest you can assert on.