Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Recurring payments on Solana, billed from your server

Mesub charges a customer's wallet on a schedule, without holding their funds. The customer approves a plan once, Mesub pulls the price to your wallet at every period, and your server asks Mesub who has access.
You publish a plan in the dashboard, add @mesub/node to your server, and gate what is paid. A React widget is there for the wallet part if you want it.

Start here

Your first subscriber
A plan, an API key, the server routes and a button, in four steps.
Check access
Ask whether a customer has access, with hasAccess, a guard, or GET /v1/access.
Webhooks
Hear when a subscription renews, misses a payment or ends.
API reference
Every route with its parameters, its answers and its error codes. Try a request from the page.

Understand

  • How it works: the flow from a click to a renewal, and the on-chain accounts behind it.
  • Lifecycle: every status, what a late payment does, cancelling and resuming.
  • Get your API key: where to create it, and how to rotate it.

Build

Look up

  • Pricing and limits: the tiers, what counts toward a limit, the API's rate limits.
  • Errors: the body of an error and every error code.