Skip to main content
u
glossaryGlossary

/

Decentralized Exchanges

What are Decentralized Exchanges?

A decentralized exchange (DEX) lets users trade assets directly from their own wallets, without an exchange holding their funds. Matching and settlement are done by software, not by a company that takes custody. Most DEXs run on smart contract chains such as Ethereum. RailsX, built by Amboss, runs on the Lightning Network.

How a DEX works

  • Self-custody. The user keeps the keys until the trade settles.
  • Pricing. Some DEXs use an order book. Others use pools of assets that set the price by a formula.
  • Settlement. The trade is a transaction that either completes or does not. On smart contract chains this is an on-chain transaction with a fee for each trade.

Amboss lists the costs of the common DeFi design in its RailsX launch post. It says DEXs on Ethereum and its layer 2s need bridges to move assets from Bitcoin, make every transaction public, carry gas costs that make small trades uneconomical, and depend on oracles and centralized token issuers at the edges. Those are Amboss's arguments, not a full comparison.

RailsX: a DEX on Lightning

Amboss announced RailsX on 23 January 2026 at the PlanB Forum in El Salvador and launched it on 28 April 2026. It lets Lightning node operators trade bitcoin and stablecoins from their own nodes.

  • Atomic payments. A Lightning payment either completes in full or not at all. RailsX trades through circular payments. A trade starts in a bitcoin channel, routes through the network and ends in a Taproot Asset channel denominated in a stablecoin such as USDT-L or USDC-L. Because the payment is atomic end to end, the swap is too.
  • No bridge or extra token. Amboss states that there is no bridge, no secondary blockchain and no utility token.
  • Self-custody. Trades are made from the operator's own node. See Taproot Assets for how stablecoins are represented on Bitcoin.
  • Access. RailsX is delivered through Thunderhub. An operator updates Thunderhub and connects litd. Thunderhub scripting lets a node automate responses to price levels.

Where the liquidity comes from

RailsX is an extension of Magma, and Rails liquidity providers supply the depth. They provide bitcoin and Taproot Asset liquidity to Magma automatically and earn leasing fees without giving up custody. They also earn fees from cross-asset routing, in the same way routing nodes earn from forwarding payments. Operators source Taproot Asset channels from providers in Magma or Thunderhub. See liquidity marketplace.

The stablecoins at launch, USDT-L and USDC-L, were built by Speed Wallet as wrapped stablecoins on Taproot Assets. In partnership with Magnolia and Bringin, RailsX also supports on and off ramps to bank rails in the US and Europe.

Limits and open questions

Taproot Asset liquidity depends on the supply of providers. The stablecoins are wrapped assets, so users also depend on their issuers and wrappers. Read the launch post and the RailsX announcement for details. Amboss asks institutions and liquidity providers that want to list assets to contact [email protected]. Related concept: atomic swaps.

PAYMENTS FOR YOUR BUSINESS

Give your customers another way to pay.

Accept Bitcoin and stablecoin payments on your website or app with Amboss.

Talk to sales