๐Ÿ‡ฐ๐Ÿ‡ท ํ•œ๊ตญ์–ด
๐ŸŒ World's First RPG Town + HTLC DEX

BTCT/DOGE DEX

Trade Bitcoin Time and Dogecoin directly โ€” no accounts, no custody, no middleman. Powered by HTLC atomic swaps.

๐Ÿš€ Launch DEX ๐Ÿ˜๏ธ Enter BTCT Town ๐Ÿ“– User Guide โญ GitHub

๐ŸŒ A World First

The first DEX to combine RPG-style multiplayer town, HTLC atomic swaps, real-time trade chat, and mobile support โ€” all in a single open-source web application.

RPG Town Atomic Swap P2SH HTLC Non-Custodial Multiplayer Open Source
0
Private Keys Stored
100%
Client-Side Signing
5-Step
Atomic Swap
MIT
Open Source

Core Features

Everything you need for trustless cross-chain trading

๐Ÿ”

Non-Custodial

The server never holds, accesses, or stores private keys. All signing happens in your browser. Your keys, your coins.

โš›๏ธ

HTLC Atomic Swaps

Both BTCT and DOGE are locked in Hash Time-Locked Contracts. Either both parties get their coins, or both get refunded.

๐Ÿ•

DOGE P2SH HTLC

Dogecoin is locked in a P2SH script with hash lock + time lock. No direct transfers โ€” full atomicity guaranteed.

๐Ÿ˜๏ธ

RPG Trading Town

Walk around a pixel-art village, see other traders in real-time, and trade face-to-face at the Bulletin Board NPC.

๐Ÿ’ฌ

1:1 Trade Chat

Encrypted per-trade chat between buyer and seller. Messages auto-delete after 90 days. No external messaging needed.

๐Ÿ“ฑ

Mobile Ready

Virtual joystick + action button for touch devices. Full trading experience on any screen size.

How Atomic Swap Works

5 steps to a trustless cross-chain trade

1

Seller Creates Secret (~12h)

Generates a random secret and publishes its SHA-256 hash. Shares DOGE receiving address. If BTCT is not locked within 12 hours, the trade is auto-cancelled.

2

Seller Locks BTCT

BTCT is locked in an on-chain HTLC contract with a ~2-hour timeout. Only the secret can unlock it.

3

Buyer Locks DOGE

DOGE is locked in a P2SH HTLC script (~6-hour timeout) using the same hash. Fully refundable on timeout.

4

Seller Claims DOGE

Seller reveals the secret to claim DOGE from the P2SH. The secret is now public on the blockchain.

5

Buyer Claims BTCT

Buyer uses the revealed secret to unlock the BTCT HTLC. Trade complete โ€” both got their coins.

Tech Stack

Built with proven technologies

โ›“๏ธ

BTCT Full Node

Local RPC for blockchain ops

๐Ÿ•

DOGE Pruning Node

Local broadcast + Blockcypher queries

๐ŸŽฎ

Phaser 3

RPG Town game engine

๐Ÿ”Œ

Socket.IO

Real-time multiplayer

๐Ÿ”‘

bitcore-lib-doge

Client-side DOGE signing

๐Ÿ›ก๏ธ

WASM + Argon2d

BTCT offline signing