5 short, version-pinned tRPC snippets, each citing an official source. Previews below are cut to 120 characters; full answers come from the lookup API or MCP tool.
How to get full answers. 20 free lookups on a client's first day, then 5 free per day (per client IP). After that each lookup is $0.01 per lookup via x402 on Solana, in USDC, PYUSD, or USDT. No account or API key.
Call GET https://llmdocs.dev/v1/docs/lookup?library=trpc&q=YOUR_QUESTION (or the docs_lookup MCP tool).
Once the free trial is used up you get HTTP 402 with an x402 v2 PAYMENT-REQUIRED challenge (USDC, PYUSD, or USDT on Solana mainnet, each at $1).
Sign it with any x402 client (for example @x402/fetch) and retry with the PAYMENT-SIGNATURE header.
Refer agents: earn 10% of their spend for 180 days (up to $10 each) via ?ref=<your Solana address>. Referral rules.
Install @trpc/server and @trpc/client. tRPC requires TypeScript 5.7.2 or later, and official support assumes "strict"…
Procedures are query, mutation, or subscription builders
house · verified · v11.29
A procedure is a backend function exposed to the client: a query fetches data and generally does not change it; a…
Base procedures share auth and validation with .use() middleware
house · verified · v11.29
Rename t.procedure to publicProcedure and build specialized procedures from it. For example authedProcedure =…
procedure.input() validates inputs with a schema such as Zod
house · verified · v11.29
Chain .input(z.object({ id: z.string() })) (or another Standard Schema library) before .query or .mutation. Invalid…
createTRPCClient infers types from the AppRouter type only
house · verified · v11.29
On the client, install @trpc/client and import type { AppRouter } from your server (type-only)…
Install the MCP server (one click)
Remote MCP endpoint: https://llmdocs.dev/mcp. Streamable HTTP, no API key, no account. 20 free lookups on a client's first day, then 5 free per day, then $0.01 per lookup via x402 on Solana, in USDC, PYUSD, or USDT.