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.

Install it, pinned
mdr add nirholas/three.ws/query-onchain-data@git:20261024.d553a25

Pins 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

The exact contents, by fingerprint
mdr add nirholas/three.ws/query-onchain-data@sha256:e2e9a4ee248583c7

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ibqc75d34hzpfuag.svg)](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.

versioncommittedcommitsizeaudit
git:20261024.d553a25 latest2026-10-24 d553a25 9,002 BA view · diff
git:20260707.d8cdbc22026-07-07 d8cdbc2 9,008 BA view · diff
git:20260509.6757e0b2026-05-09 6757e0b 8,917 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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.

More from nirholas/three.ws

anatomy SKILL.md skill
nirholas/three.ws · .agents/skills/anatomy/SKILL.md · Explain how a machine works as an interactive isometric 3D cutaway. Use when the user asks how an engine, turbine…
git:20261024.d553a25 · audit A · 269 stars
authenticate-wallet SKILL.md skill
nirholas/three.ws · .agents/skills/authenticate-wallet/SKILL.md · Sign in to the wallet. Use when you or the user want to log in, sign in, connect, or set up the wallet, or when any…
git:20261024.d553a25 · audit A · 269 stars
build-an-agent-skill SKILL.md skill
nirholas/three.ws · .agents/skills/build-an-agent-skill/SKILL.md · Write a real three.ws agent skill bundle (manifest.json + SKILL.md + tools.json + handlers.js) that gives a 3D agent a…
git:20261024.d553a25 · audit A · 269 stars
connect-three-ws-mcp SKILL.md skill
nirholas/three.ws · .agents/skills/connect-three-ws-mcp/SKILL.md · Connect any MCP client (Claude Code, Claude Desktop, the Agent SDK, or a custom one) to the three.ws MCP servers, so…
git:20261024.d553a25 · audit A · 269 stars
create-3d-avatar SKILL.md skill
nirholas/three.ws · .agents/skills/create-3d-avatar/SKILL.md · Turn a text prompt (or reference image) into a rigged, animation-ready 3D avatar (GLB). Use when you or the user want…
git:20261024.d553a25 · audit A · 269 stars
create-a-three-ws-agent SKILL.md skill
nirholas/three.ws · .agents/skills/create-a-three-ws-agent/SKILL.md · Create a real three.ws AI agent (identity, 3D body, custodial Solana wallet, persona) from the command line and get its…
git:20261024.d553a25 · audit A · 269 stars
embed-three-ws-avatar SKILL.md skill
nirholas/three.ws · .agents/skills/embed-three-ws-avatar/SKILL.md · Embed a live, animated three.ws 3D avatar in any website with the <agent-3d> web component. Use when you or the user…
git:20261024.453043b · audit B · 269 stars
find-3d-assets SKILL.md skill
nirholas/three.ws · .agents/skills/find-3d-assets/SKILL.md · Search thousands of ready-made 3D assets on three.ws (CC0 props and objects, rigged humanoid characters, motion clips)…
git:20261024.453043b · audit A · 269 stars
fund SKILL.md skill
nirholas/three.ws · .agents/skills/fund/SKILL.md · Add money to the wallet. Use when you or the user want to fund, deposit, top up, load, buy USDC, add funds, onramp, or…
git:20261024.453043b · audit A · 269 stars
gcp-triage SKILL.md skill
nirholas/three.ws · .agents/skills/gcp-triage/SKILL.md · Monitor three.ws production on Google Cloud Run and fix what the sweep finds. Use when the user asks to check…
git:20261024.d553a25 · audit A · 269 stars
generate-3d-model SKILL.md skill
nirholas/three.ws · .agents/skills/generate-3d-model/SKILL.md · Turn a text prompt into a downloadable, textured 3D model (GLB). Use when you or the user want to generate, create…
git:20261024.453043b · audit A · 269 stars
hire-an-agent SKILL.md skill
nirholas/three.ws · .agents/skills/hire-an-agent/SKILL.md · Find a three.ws agent that already does the job, then buy its skill or have one of your own agents hire and pay it…
git:20261024.d553a25 · audit A · 269 stars

Every file in nirholas/three.ws

Browse by kind, by grade A, or by owner.