Qirsh documentation
Qirsh is a self-hosted payment gateway for USDT on TRON (TRC-20). Your store's backend creates an invoice, the customer pays on a hosted checkout page, and your store receives a signed webhook when the payment is final. The money goes to a wallet you control. In the default mode the server holds no keys at all; in the optional forwarder mode it holds one fee-payer key that can pay TRX for sweeps and cannot send customer funds anywhere but the project's own wallet. One gateway can serve many stores, each as its own project with its own wallet, API keys, webhook and users.
Start here
- Concepts: projects, users, invoices, statuses, the two deposit modes, sweeps and webhooks.
- Quick start: a working gateway on the Nile testnet in about five minutes.
Run a gateway
- Hosting guide: Docker, Node with systemd, nginx or Caddy with HTTPS, backups, upgrades, monitoring.
- Configuration: every environment variable, its default and its limits.
- Operator guide: the admin console, projects and their wallets, users, API keys, password confirmation, the activity log, forwarder setup, the admin CLI.
- Network fees: the per-project USDT fee that covers forwarder sweeps, who pays it, and how it is bound to each deposit address.
Integrate a store
- Integration guide: the shortest path from "create invoice" to "order fulfilled".
- API reference: every endpoint, with request and response examples.
- Webhooks: events, the signature header, and verification code in Node, PHP and Python.
- Node SDK: the zero-dependency client in
sdk/. - Testing: simulated payments, real Nile transfers and the edge cases a store must handle.
Help
Reference
- Forwarder mode design: contracts, address derivation, transaction checks and the threat model, in full.
- Security policy: what the server holds, the threat model and the operator checklist.
- Contracts: the forwarder and factory contracts, and how to flush an address by hand.
Where to start
| You are | Read first | Then |
|---|---|---|
| A developer adding USDT payments to a store | Integration guide | Webhooks, Testing, API reference |
| An operator running a gateway for one or more stores | Quick start | Hosting guide, Operator guide, Configuration |
| A contributor working on Qirsh itself | Concepts | Forwarder mode design, CONTRIBUTING.md, AGENTS.md |