• 0.1.0 Beta
  • Open source
  • Self-hosted, never holds your money

A crypto payment gateway you run yourself

Your apps take USDT, USDC and native coins on TRON, EVM chains, Solana and Bitcoin, through an API, a checkout page and webhooks. The money goes straight to your own wallets, and the keys that move it never reach the server.

On test networks, the whole path takes about 30 minutes: keys, deployment, a payment, a sweep.

The checkout page your customers see

How it works

One payment, from invoice to your wallet

Your app talks to the API alone. Reading the chains, confirming, notifying and sweeping are done for it.

  1. 01

    Invoice

    Your app asks the API for an invoice in US dollars, and gets a checkout link.

  2. 02

    Payment

    The checkout page shows the address and the exact amount; the customer scans it, or opens their wallet in one tap.

  3. 03

    Confirmation

    The server reads the chain, counts the payment once it is final, and sends your app a signed webhook.

  4. 04

    Sweep

    The signer signs on your own computer, and the coins go to the hot wallet — and, once it holds enough, to your cold wallet.

Security

The keys that move money never reach the server

The server holds public keys only: it can derive addresses and watch them, not spend from them. It never hands the signer a transaction, only an intent — “sweep 50 USDT from address 7 to the hot wallet”. The signer checks each one on your own computer, then builds the transaction and signs it itself.

  • It derives every address itself, and refuses one that does not match
  • It allows only the moves the system itself makes, and only tokens it knows
  • It signs payouts unattended only within your limits; the rest wait for a person
  • Fees and top-ups have a daily budget

A server broken into can only ask: a person approves, or a daily limit holds.

Read the security notes, and what they do not protect
ServerIn the cloud · public keys only

Derives addresses, reads the chains, keeps the books, sends webhooks

Intent: sweep 50 USDT from address 7 to the hot wallet

SignerOn your computer · the keys are here

Checks each request against its policy, builds the transaction and signs it; beyond its limits, waits for a person

The signed transaction, handed back for the server to broadcast

Chains
  • TRON
  • Ethereum
  • BNB Smart Chain
  • Polygon
  • Arbitrum One
  • Base
  • OP Mainnet
  • Solana
  • Bitcoin

Chains

The chains and stablecoins people pay with, one API

Stablecoins only by default; to take a chain’s own coin too, add one word to the configuration. A new chain of a known family is a few lines of configuration, with no change to the API.

  • TRON

    USDT · TRX

    Test network: Nile

  • Ethereum

    USDT · USDC · ETH

    Test network: Sepolia

  • BNB Smart Chain

    USDT · USDC · BNB

    Test network: BSC Testnet

  • Polygon

    USDT · USDC · POL

    Test network: Amoy

  • Arbitrum One

    USDT · USDC · ETH

    Test network: Arbitrum Sepolia

  • Base

    USDC · ETH

    Test network: Base Sepolia

  • OP Mainnet

    USDT · USDC · ETH

    Test network: OP Sepolia

  • Solana

    USDC · USDT · SOL

    Test network: Devnet

  • Bitcoin

    BTC

    Test network: Testnet4 · Signet

  • Other EVM chains

    Configured by you

    A few lines each

Features

All that taking payments takes

  • Invoices

    In US dollars, paid in any coin the invoice takes. Native coins at the median price of several exchanges, held while it is open.

  • Checkout page

    In English and Chinese: a QR code, the exact amount, a button that opens the wallet, and the payment seen arriving.

  • Finality

    A payment counts once it cannot be undone; one a reorganisation drops is noticed.

  • Webhooks

    Every change is a signed event, retried for about four days until your app answers, and readable from the API.

  • Customer addresses

    Each of your customers gets a deposit address per chain family, theirs for good.

  • Sweeps

    Deposit addresses are emptied into the hot wallet, and what it need not keep into your cold wallet, each fee arranged first.

  • Payouts and refunds

    Your apps ask, the signer signs, the hot wallet pays. A deposit is never refunded beyond what it brought.

  • Unattended signing

    The signer runs as a service on your computer: sweeps, and payouts within its limits, are signed; the rest wait for a person.

  • Alerts

    Telegram, email, Slack, Discord, Feishu, WeCom or DingTalk: a chain stopped, a hot wallet running low — you hear of it.

  • Many apps, one deployment

    Each app has its own API keys, webhook, balances and data.

  • Dashboard

    In English and Chinese, with two-step sign-in. Whatever can move money asks again, and goes in the audit log.

  • Setup and checkup

    ./setup asks its way through a deployment; doctor looks it all over and says what to fix.

See it

The checkout page, the dashboard and the signer

Recording to come: invoice, payment, paid — about 20 seconds
A USDT payment from invoice to “Payment complete”, recorded on a test network.
Screenshot to come: the dashboard’s invoices
The dashboard: invoices, deposits, payouts, sweeps and signing, in English and Chinese.
Screenshot to come: the signer’s page
The signer: every request seen on your own computer before it is signed.

Get started

One command to deploy, 30 minutes on test networks

On any machine with Docker, run ./setup. It asks what the deployment is to be, checks that every node is on the right network, writes the configuration and starts it all, then looks the whole deployment over. In English or Chinese.

# On your own computer: make the keys
$ npm run signer -- init

# On the server: set it up, then look it over
$ ./setup

# Connect the signer to the server
$ npm run signer -- connect https://pay.example.com cps_…

Where it stands

0.1.0 Beta

Complete, and tested: the whole path has been run with test coins on TRON Nile, Ethereum Sepolia, Base Sepolia, Solana Devnet and Bitcoin Signet — an invoice paid, the payment confirmed, fees topped up, everything swept back to the hot wallet.

Real money has so far been taken only as USDC on Base, paid and then swept by the signer unattended; the other chains have run with test coins only. Before taking real money, run each chain you will use on its test network, and keep the hot wallet small.

License

Free and open source, or under a commercial license

Open source

Free

  • The server, the dashboard and the checkout page: AGPL-3.0
  • The signer and the SDK: Apache-2.0, so your apps take them in without the AGPL’s terms
  • Change the server and run it for others, and you share your changes
View on GitHub

Commercial license

Quoted on request

  • You change the server, and cannot share its source
  • Your company does not use AGPL software
  • You build it into a closed product

How to ask comes with the public release.

ruoyu-lab makes the software. It never holds funds and offers no payment service: the system you deploy is yours to run.