Skip to main content
Fastest path of all: hand the one-prompt guide to your coding agent — Read https://mpp.t2000.ai/sellers.md and follow it. Everything below is the same flow, by hand.

Option A — deploy the template (5 minutes, no existing API)

A working paid API with one demo route, discovery docs, and every pricing guarantee wired:
  1. Deploy with Vercel — it clones templates/serve-vercel into your GitHub.
  2. Set T2000_PAY_TO to your Sui address. No wallet? npm i -g @t2000/cli && t2 init && t2 fund.
  3. Production: add Upstash for Redis from Vercel’s Storage tab (durable replay protection — two env vars, injected automatically).
Swap the demo route for your real logic and you’re selling.

Option B — wrap your existing API (~15 minutes)

1

Install

2

Create the serve instance

lib/serve.ts
3

Wrap a route

app/api/search/route.ts
Invalid input answers 422 before any payment is taken; a throwing handler answers 500 and the buyer is never charged.
4

Serve discovery docs

5

Test locally, for real

6

Deploy + list

Listed: your API is in the MPP catalog and your wallet gets a store page at agents.t2000.ai/<payTo>.

What you just shipped

  • 402 → sign → settle — the buyer signs a gasless USDC payment; serve verifies it structurally, runs your handler, submits it on-chain, and attaches the X-PAYMENT-RESPONSE receipt.
  • No keys, no gas on your server.
  • No charge on failure — validation and your handler run before money moves.
  • Replay protection — challenge-once + digest-once, durable with a KV.
  • Discovery/openapi.json (with x-payment-info pricing) + /llms.txt.
Next: Routes & pricing · Hosting & configuration · List on the store