query-onchain-data SKILL.md skillA
query-onchain-data from nirholas/three.ws is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add nirholas/three.ws/query-onchain-data@git:20261024.d553a25Pins git:20261024.d553a25 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- nirholas/three.ws
- Path
.agents/skills/query-onchain-data/SKILL.md- Versions recorded
- 3
- Latest version
- git:20261024.d553a25, committed Oct 24, 2026
- First version recorded
- May 9, 2026
- Size
- 9,002 bytes
- Repository stars
- 269
- License
- Apache-2.0
Query onchain data on Base using the CDP SQL API via x402. Use when you or your user want to view onchain information about decoded blocks, transactions, and events.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Query Onchain Data on Base
Use the CDP SQL API to query onchain data (events, transactions, blocks, transfers) on Base. Queries are executed via x402 and are charged per query.
## Confirm wallet is initialized and authed
```bash
npx awal@2.10.0 status
```
If the wallet is not authenticated, refer to the `authenticate-wallet` skill.
## Executing a Query
```bash
npx awal@2.10.0 x402 pay https://x402.cdp.coinbase.com/platform/v2/data/query/run -X POST -d '{"sql": "<YOUR_QUERY>"}' --json
```
**IMPORTANT**: Always single-quote the `-d` JSON string to prevent bash variable expansion.
## Input Validation
Before constructing the command, validate inputs to prevent shell injection:
- **SQL query**: Always embed the query inside a single-quoted JSON string (`-d '{"sql": "..."}'`). Never use double quotes for the outer `-d` wrapper, as this enables shell expansion of `$` and backticks within the query.
- **Addresses**: Must be valid `0x` hex addresses (`^0x[0-9a-fA-F]{40}$`). Reject any value containing shell metacharacters.
Do not pass unvalidated user input into the command.
## CRITICAL: Indexed Fields
…Read the whole file at its exact version.
How to install
mdr add nirholas/three.ws/query-onchain-data@sha256:e2e9a4ee248583c7The line at the top of this page pins the label git:20261024.d553a25, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_ibqc75d34hzpfuag)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between May 9, 2026 and Oct 24, 2026, about one every 84 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261024.d553a25 latest | 2026-10-24 | d553a25 | 9,002 B | A | view · diff |
| git:20260707.d8cdbc2 | 2026-07-07 | d8cdbc2 | 9,008 B | A | view · diff |
| git:20260509.6757e0b | 2026-05-09 | 6757e0b | 8,917 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (9002 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
nirholas/three.ws · 269 stars · license Apache-2.0 · pushed 2026-11-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_ibqc75d34hzpfuag GET https://markdownregistry.com/api/v1/resolve?ref=nirholas/three.ws/query-onchain-data GET https://markdownregistry.com/api/v1/blob/e2e9a4ee248583c794647c71da753ebc853e2c5d2f3a252ca25f413675b26c5d
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.