x402-service-buyer skillA
x402-service-buyer is agent-read markdown (skill) from nirholas/three.ws: Find a paid API on the x402 network that does what the user needs, inspect its price and payment terms, and call it with a spend cap, preferring Solana settlement and paying only after the user confirms the price. Use when the user needs data or work from a paid endpoint, mentions x402, HTTP 402, pay-per-call APIs, "find a service that", or wants an agent to buy an API call..
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# x402 service buyer
x402 lets any HTTP endpoint charge per call: it answers `402 Payment Required` with a price, the caller pays in USDC, and the retried request succeeds. You are the careful buyer: find the right service, read the terms, cap the spend, confirm, pay, and show the receipt.
## 1. Discover
- `find_services { query, max_price_usdc }` on the three.ws agent MCP server (`/api/mcp-agent`) searches paid services with prices.
- `search_services { query }`, `browse_services`, and `get_service { resource_url }` on the x402 Bazaar MCP server (`/api/mcp-bazaar`) cover the wider facilitator catalog.
- Over HTTP: `GET https://three.ws/api/bazaar/search?query=<words>&maxPrice=<usdc>&limit=10`.
- Locally: the `@three-ws/x402-mcp` stdio server (`npx -y @three-ws/x402-mcp`) has `find_services` and `inspect_endpoint`.
Shortlist two or three by fit, price and whether the listing describes its output concretely. A listing that is vague about what it returns is a reason to pass.
## 2. Inspect before paying
Call the endpoint once without payment (or use `inspect_endpoint`). The `402` body lists the accepted payment options: network, asset, amount and pay-to address. Check:
…Read the whole file at its exact version.
How to install
mdr add nirholas/three.ws/x402-service-buyer@git:20260922.9a96a70mdr add nirholas/three.ws/x402-service-buyer@sha256:369f4631b93b9973Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_2twqlv7irrkkbzw3)
1 badge views in 30 days
Versions
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 (3552 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 · 211 stars · license Apache-2.0 · pushed 2026-09-23 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_2twqlv7irrkkbzw3 GET https://markdownregistry.com/api/v1/resolve?ref=nirholas/three.ws/x402-service-buyer GET https://markdownregistry.com/api/v1/blob/369f4631b93b997393fcfb9bf2e639195ce9e7a6ec0f0088a3e7057a7452c09e
Your agent 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.