# Proof of Stock™ documentation

Proof of Stock checks tokenized stocks, the real-world assets (RWA) that trade on-chain: whether a token is the
issuer's own, what the issuer says it is worth, and how far the chain trades from that. Base and Robinhood Chain.

```
Is 0x… on Base the issuer's tokenized stock?      → /verify, verify_stock_tokens
What does the issuer say it is worth, and since?  → stock_passport: reference, reference.age_s
How far does the chain trade from that?            → stock_passport: latest.premium
```

## Quick start

No key, no sign-up.

```bash
# an agent: the MCP server
claude mcp add --transport http proofofstock https://proofofstock.com/mcp
# anything else: plain HTTP
curl -s 'https://proofofstock.com/verify?chain=base&address=0xb20000000000000000000078ee7ce2fe4908108c'
```

## Tutorials

Learn by doing, start to finish.

- [Connect an agent and read your first passport](tutorials/connect-an-agent.md): Claude, Claude Code, Cursor or curl,
  in five minutes.

## How-to guides

Recipes for one task each.

- [Check a contract before listing or buying it](how-to/check-before-listing.md): `/verify`, the badge,
  `verify_stock_tokens` and `@proofofstock/guard`.
- [Alert when the on-chain price drifts from the issuer's reference](how-to/alert-on-gap.md): poll `/api/overview` or
  `stock_passport`, with a small Node script.
- [Compare one stock across Base and Robinhood Chain](how-to/compare-venues.md): `/api/matrix` and `compare_venues`.
- [Check us, not just our answers](how-to/check-us.md): what we could and could not fake, the three checks of an
  answer you can run without us, and what an agent should say when asked whether the service is audited.
- [Keep a receipt of a check](how-to/keep-a-receipt.md): `/verify?...&receipt=1` and `scripts/receipt-check.mjs`, to
  prove months later why a token was or was not listed.
- [Check that our data existed on a given day](how-to/verify-an-anchor.md): the daily OpenTimestamps anchors at
  `/anchors/`.
- [Embed a badge](how-to/embed-a-badge.md): the verdict for one token as an image on your page or README,
  from the token's passport or by hand.
- [Test your agent](how-to/test-your-agent.md): six buying tasks graded against the issuers' own lists, a result page and a
  badge for your users, and `scripts/agent-test-check.mjs` to check a result without trusting us.

## Reference

Every field, tool and route.

- [The passport](reference/passport.md): every field and note code.
- [MCP tools](reference/tools.md): inputs and answers of each tool.
- [HTTP API](reference/http-api.md): routes, status codes, caching and rate limits.
- [The token list, `/tokenlist.json`](reference/http-api.md#route-tokenlist): the issuer-listed tokens that trade in a
  pool, as a Uniswap token list for a wallet or DEX front end to import.
- [The look-alike list, `/denylist.json`](reference/http-api.md#route-denylist): every look-alike flagged right now,
  in one file, for a wallet or security API to warn before a swap.

## Explanation

Why it works the way it does.

- [Methodology](explanation/methodology.md): the sources and cadence of each layer, how "issuer-listed" and
  impostors are decided, how the premium is computed, market sessions, quarantine and known limitations.

## Also

- [The Demo Agent](https://proofofstock.com/demo): an agent searches the market for a stock by name and Proof of
  Stock tells the original from the rest, live in the browser; nothing is signed.
- [Threat model](explanation/threat-model.md): who this service does not trust and what it does about each of them,
  what it refuses to claim, what it does not defend against, and what a successful attack would look like.
- [Legal](legal.md): not advice, no affiliation, data as is, licence.
- [Changelog](changelog.md): every release, what changed and what broke.

[Not investment advice](legal.md)
