Introduction
ETHPayServer is a free, open-source, self-hosted payment processor for Ethereum and EVM-compatible chains. It lets a merchant accept ETH and ERC20 tokens (USDC, USDT, DAI, WBTC, and others) across many EVM chains from a single codebase, without ever handing a spending key to anyone else’s server.
Why it exists
Most “accept crypto” integrations are custodial: you either hold funds in an account you don’t control, or you hand a hosted processor the keys that can move your money. ETHPayServer is built the other way around.
Merchants receive payments directly to addresses derived from their own extended public key
(xpub). The server watches the chain, detects payments, and reports them — but it never
constructs a spending key, never signs a transaction, and cannot move funds. validate_xpub
refuses an extended private key outright, on the version-byte prefix, so a merchant cannot
accidentally hand over the wrong line.
See Non-Custodial Design for how that guarantee is actually enforced in code, not just promised in prose.
What’s in this book
- Quickstart — run the stack locally and create your first invoice.
- Architecture — the API server, the payment monitor, and how they talk to each other.
- Guides — invoices, webhooks, API key scopes.
- API Reference — the full REST API, generated from the server’s own OpenAPI spec.
The repositories
ETHPayServer is split across a few public repositories, each with its own purpose:
| Repository | What it is |
|---|---|
ethpayserver | The API server and payment monitor (this book documents it) |
payserver-client | The web frontend — one client, built to work with any payserver, not only this one |
payserver-commons | Shared types, auth, and crypto used across the above |
All three are MIT-licensed and open to contributions.