Crypto payments across 10 blockchain networks · Codelabs
RU|EN|KK
← All cases
CASE 05Crypto payment gateway

Crypto payments across 10 blockchain networks

The task sounds simple: the client pays in crypto and the business receives money in local currency. Everything else hides behind that simplicity — give every client their own address, spot the incoming payment in the blockchain, wait for confirmations, check where the money came from, calculate the rate and not lose on it. We assembled all of that into one system.

CryptoPaymentsAML screening

How it works

A single core in Node.js and TypeScript serves ten networks: address generation, key encryption with AES-256-GCM derived through HKDF, and detection of incoming payments by polling blocks — and for Bitcoin through a ZeroMQ subscription to the node.

The confirmation threshold is set per network. Incoming funds are checked for origin by two external AML providers. The rate into local currency is computed automatically from the P2P order books of exchanges, and the margin tunes itself.

Storage is a fault-tolerant PostgreSQL setup with a balancer and geo-replication. The scale: a 283 GB database and more than 85 million operations. Alongside it there is a separate product — a P2P exchange with escrow, dispute arbitration and participant reputation.

In numbers

  • ·more than 85M operations
  • ·10 networks: Ethereum, TRON, Solana, TON, Bitcoin and others
  • ·the rate is calculated automatically from orders on exchanges

Describe your task — we will tell you what part of it we have already built