Torii Wallet documentation#
Docs and a user guide for Torii Wallet, separate from the NightWatch guide. English is canonical. Testnet (Base Sepolia). The same pages are served in the app at /tw/docs.
Give your agent a mandate, not a key.
Reading order for people#
Chapters 1, 4, 5 and 7 also exist in Korean, Japanese, Simplified Chinese and Vietnamese (*.ko.md, *.ja.md, *.zh-Hans.md, *.vi.md). They are machine-drafted and not yet reviewed by a native speaker.
Reading order for agents#
- Connect
- Offers and accept
- Limits discovery
- Reporting events
- Refusals
- Your Hall record
- Console
- One-day integration checklist
The plain-text front door for agents is /tw/llms.txt. The one-page bootstrap is GET /torii/skill.md.
Reference#
- API routes (generated; a test keeps it complete)
- Data shapes
- Flags and environment
- Contracts
- Changelog
NightWatch documentation#
Torii Wallet runs on the NightWatch API and shares its account. The NightWatch book is in docs/guide/ and its plain-text index is /llms.txt. This paragraph is the only place in this folder that points there.
Folders in this folder#
| Folder | What it holds | Served at /tw/docs |
|---|---|---|
user-guide/, agent-guide/, reference/ | The published pages | Yes |
tw-llms.txt | The plain-text front door for agents | At /tw/llms.txt |
pm/ | Charter, spec, plan, design, QA reports, positioning | No |
ops/ | Runbooks, contract notes, audits and their repro files | No |
BOUNDARY.md | Where this folder meets the NightWatch repository | No |
Status words used here#
| Word | Meaning |
|---|---|
| Built | Exists in the code on the wallet branch |
| As designed | Specified in the design, not yet merged. Reconciled at merge time |
| Pending | No code yet |
| est. | An estimate, not a quote |
Rules for editing#
- Facts, not conclusions. Never promise a return.
- Amounts are written
12.34 USDC. - Use
{{brand}}in headings and introductions only. See Brand. - Body text may be fuller; headings and intros stay short.
- Tests in
tests/torii_wallet/test_docs_*.pyandfrontend/tests/tw_docs.test.mjscheck routes, tool counts, links, banned words, translations and the boundary with the NightWatch docs (test_docs_boundary.py).
How to split this out#
Full inventory and the reasons for each coupling are in BOUNDARY.md (not published). The short version:
- Move
docs/torii-wallet/as it is. Movescripts/gen_tw_docs_routes.py,frontend/scripts/tw_docs_sync.mjs,frontend/content/tw-docs/,frontend/public/tw-llms.txt,frontend/tests/tw_docs.test.mjsandtests/torii_wallet/test_docs_*.pywith it. History-preserving form:git filter-repo --path docs/torii-wallet --path scripts/gen_tw_docs_routes.py --path frontend/scripts/tw_docs_sync.mjs --path frontend/content/tw-docs --path frontend/public/tw-llms.txt --path frontend/tests/tw_docs.test.mjs --path-glob 'tests/torii_wallet/test_docs_*.py'. - In the NightWatch repository, remove the one index entry: the "Related, outside this book" section of
docs/guide/README.md, and the words "(plus the Torii Wallet tools, documented separately)" indocs/guide/10-connect-your-ai.md. Remove the "Torii Wallet tables" pointer indocs/DB_SCHEMA.mdand the pointer line indocs/pm/LOOP_LANES.md. - In the new repository, delete the "NightWatch documentation" paragraph above (or keep it as a link to the NightWatch repository) and run
node scripts/tw_docs_sync.mjs, then the tests. - The generator and two of the tests read the API code (
svc/api/routes/torii_*.py,svc/api/routes/mcp.py). Keep a checkout of that code next to the docs, or point them at the API repository.