FAQ
Does Qirsh hold my money?
No. In the default unique-amount mode customers pay straight to your own wallet, and the server holds no keys at all. It only watches the chain. In forwarder mode customers pay a deposit address that can only ever pay out to your wallet, and the server holds one key, for a fee wallet that pays TRX for sweeps. See Concepts and SECURITY.md.
Can the gateway operator steal payments?
They cannot move funds out of your wallet: the server never has its keys. Funds already sitting at forwarder deposit addresses can only go to the wallet hashed into each address. What a dishonest or compromised operator could do is show new customers a different address or report false statuses. That is why your store should fulfil only on signed webhooks, and why you can check tx_id and pay_address on Tronscan. If you don't want to trust an operator, host it yourself.
What does it cost?
The software is free (MIT). In unique-amount mode there are no per-payment costs for the merchant: the customer pays the TRON network fee for their own transfer. In forwarder mode each sweep costs the fee wallet roughly 11 to 13 TRX at today's energy price (an estimate that has not been measured on Nile yet), less with staked energy. A hosted operator may charge for the service, or charge a network fee in USDT per forwarder invoice to cover those sweeps (Network fees). The fee is set per project, shown on every invoice, and either deducted from what the wallet receives or added to what the customer pays.
What is the network fee, and who gets it?
A fee per forwarder invoice that the gateway operator may charge to cover the TRX it spends sweeping the deposit address. It goes to the operator's fee collector wallet, never to the software author. It is fixed into the deposit address when the invoice is created, so it is taken at most once and cannot be raised later. Unique-amount mode never charges it. See Network fees.
Why is amount_due higher than my price?
Either the project is in unique-amount mode, which adds up to 0.009999 USDT to identify the payment, or the operator charges a network fee that the customer pays (network_fee.payer: "customer"), which adds the fee. In both cases compare amount_paid with your own price when you fulfil, not with amount_due.
Why does the customer have to send an odd amount like 49.907423?
In unique-amount mode all customers pay the same wallet address. The extra digits (at most 0.009999 USDT) are how Qirsh tells which transfer belongs to which invoice, without creating a wallet per customer. The checkout highlights them and asks the customer to send exactly that amount.
Which deposit mode should I use?
Unique amount needs no keys and has no running costs. Forwarder (an address per invoice, round amounts) suits you when many customers pay from exchanges that cannot send six decimals, when unmatched payments cost you support time, or when you want one address per order. New dashboard projects use forwarder automatically when the server is set up for it. Forwarder mode costs TRX per payment, so it suits orders worth well above a few dollars. See Concepts.
Can customers pay from an exchange?
Often, yes, but in unique-amount mode many exchanges round the amount or subtract a fee, and the payment shows up as unmatched. You can assign it to its invoice by hand in the dashboard. Forwarder mode avoids this, because any amount sent to the invoice's address belongs to the invoice.
Can the dashboard create a wallet for a project?
Yes. When an admin creates a project, or changes its wallet, they can choose Generate a new wallet. The wallet is created in the admin's browser: a 12-word recovery phrase, its private key and the address. The admin writes the words down and types 3 of them back. Only the address reaches the server. See Choose the wallet.
How do I open a generated wallet in TronLink?
In TronLink choose Import wallet, pick the recovery phrase (mnemonic) option, and enter the 12 words in order. TronLink shows the same address as the dashboard, because both use the standard TRON path m/44'/195'/0'/0/0. You can also import the private key instead. Trust Wallet and other TRON wallets that use the same path work too. If a wallet shows a different address, it uses another path or account index; check its settings, or use the private key.
Can Qirsh show the recovery phrase again?
No. The phrase and the key are shown once, in the browser that generated them, and are removed from the page when the dialog closes. The server never receives them, so there is nothing to show or recover. If you lost them, and the wallet holds funds, the only way to reach those funds is the downloaded text file or your written copy. If you lost those too, the funds cannot be recovered by anyone. Change the project to a new wallet so no new payments go to the old one.
Is a wallet generated in the dashboard safe for large amounts?
Treat it as a hot wallet. The generator runs in your browser and the server never sees the phrase, but the code is served by the gateway, so someone who controls the server or your browser could tamper with it. For wallets that will hold significant value, create the wallet in TronLink itself or on a hardware wallet (for example a Ledger connected to TronLink), choose Use an existing address, and paste the address. Move funds out of a generated wallet regularly.
Why does the dashboard ask for my password again?
Changing a wallet, network or deposit mode, disabling a project, rotating a webhook secret, revoking the last API key, and changing users' roles, access or passwords can redirect money or lock people out. These actions need your password again, once per 5 minutes per browser session, and each is recorded in the activity log (Admin → Activity). See Password confirmation.
Can my own wallet be an exchange deposit address?
Don't do that. Exchanges may credit deposits late or not at all, and some do not credit transfers sent by a contract, which is how forwarder sweeps arrive. Use a wallet you control (TronLink, a hardware wallet, Trust Wallet and so on).
A customer sent USDT on another network, or sent TRX. What now?
Qirsh only counts the configured token contract (USDT TRC-20) on TRON. USDT sent on Ethereum, BNB Chain or any other network never reaches TRON, and the gateway cannot see or recover it. That is between the customer and their wallet or exchange. TRX or other TRC-20 tokens sent to a forwarder deposit address can be recovered to your wallet by an admin (Recover...). TRC-10 tokens cannot. Anything sent to your own wallet in unique-amount mode is already in your wallet.
How do refunds work?
Qirsh does not send refunds. You send them from your own wallet, like any other transfer. The dashboard shows each payment's sender (from_address), but that may be an exchange's hot wallet, so ask the customer for a refund address.
What happens if the customer pays after the invoice expired?
If the transfer was sent before the deadline and only detected later, the invoice still becomes paid. If it was sent after the deadline, it is not settled automatically. In unique-amount mode it shows as unmatched; in forwarder mode it shows on the invoice as a late payment. You can settle it in the dashboard or refund it.
How long does a payment take to confirm?
The checkout shows Confirming within one poll (10 seconds by default) of the transfer appearing on-chain. The invoice becomes paid once the block is solidified, which usually takes about a minute.
How do I test without real money?
Use a Nile testnet project. Simulated payments send real signed webhooks with no wallet at all, and the Nile faucet gives free test USDT for real transfers. See Testing.
Can I accept a token other than USDT?
Yes, one TRC-20 token per gateway network. Set TOKEN_CONTRACT, TOKEN_SYMBOL and TOKEN_DECIMALS for the default NETWORK. See Configuration. TRX itself and TRC-10 tokens are not supported.
Can I run several stores on one gateway?
Yes. Each store is a project with its own wallet, network, API keys, webhook, branding and users. An admin adds projects in the dashboard. Project users see only their own project. See the Operator guide.
What if I lose the database?
Your funds are on-chain and not affected. You lose invoice history and webhook logs, so keep backups (Hosting). In forwarder mode, funds still waiting at deposit addresses can be found and flushed with npm run admin -- recover-forwarder, which needs only the invoice ids, the factory and your wallet address. Invoice ids are in your store's orders and webhook logs.
Do I need a TronGrid API key?
On testnets, no. On mainnet, yes in practice: without one TronGrid rate-limits the watcher, and /health turns 503. A key is free at https://www.trongrid.io.
What is the fee wallet?
A TRON account the gateway uses in forwarder mode to pay TRX for sweeps. It has no special role in any contract, so its key cannot redirect customer funds. Keep only a small TRX float in it, use a new key made for this purpose, and use a separate key for testnets. See the Operator guide.
What data does Qirsh store?
Invoices (amounts, your order id, description, metadata, redirect URLs, status, transaction ids and sender addresses, and in forwarder mode the network fee terms), on-chain transfers seen at watched addresses, webhook events, projects, API key hashes, dashboard users with scrypt password hashes, sessions, and an activity log of admin actions (who, when, from which IP, and the old and new values, never secrets). It never stores a wallet's private key or recovery phrase, including wallets generated in the dashboard. It sets one cookie, the dashboard session cookie, and the dashboard remembers the last project you opened in your browser's local storage. The checkout sets nothing, and there is no analytics or tracking. A gateway publishes its privacy policy at /legal/privacy.
Which languages does the checkout support?
English and Arabic (right to left). The language comes from ?lang=, the invoice's locale, or the browser. Adding one means adding a dictionary to src/views/i18n.ts.
Has the code been audited?
Not by an outside firm. The code has had internal security reviews, and the forwarder contracts are about 150 lines with tests on an in-process EVM, but there has been no external audit. Forwarder mode has not yet run on mainnet. Read SECURITY.md, try everything on Nile, and start mainnet with small amounts.
Is there a hosted version?
The software is self-hosted. Anyone may run an instance for others, as a gateway operator. If you use someone else's instance, their terms apply and you are trusting them with your payment statuses, though never with your wallet keys. If you want full control, run your own: it is one Node.js process and a SQLite file.
What is the license?
MIT. You can use, change and run it commercially. Tether, USDT and TRON are trademarks of their owners; Qirsh is not affiliated with them.
How do I report a security problem?
Privately, through GitHub's Report a vulnerability. Don't open a public issue. See SECURITY.md.