← All work · Blockchain

Crypto Payment & Wallet Gateway

Multi-chain deposits and withdrawals credited straight to MT5 trading accounts.

Role: Architect & backend lead

The challenge

A forex brokerage needed clients to fund and withdraw in crypto across several networks, with balances reflected on their MT5 accounts — without exposing signing keys or double-crediting a single transaction.

The solution

A queue-driven gateway that watches TRON, Ethereum, BSC, Bitcoin and Solana, confirms deposits, and credits MT5 accounts through the existing bridge. Withdrawals pass finance approval and are signed by an isolated signer service.

What was built

  • USDT variants and native coins across TRON, ETH, BSC, BTC and Solana
  • Isolated signer service — keys never touch the public API
  • Idempotent crediting backed by MongoDB replica-set transactions
  • RabbitMQ work queues and Redis for locks and rate limits
  • Role-based portals for clients, finance and admins (JWT)
  • Signed webhooks into the CRM and Risk Management System

Outcome

  • Crypto funding becomes a first-class payment method for the brokerage
  • Clear separation between public API, workers and key custody
  • Testnet-first rollout, delivered in reviewed phases

Technology

Node.js, Express, MongoDB, Redis, RabbitMQ, Next.js, MUI, Docker Compose, TRON, Ethereum, Solana, Bitcoin

Case study by Shahfayaz Khan.