Share this article

Bitcoin-Ethereum Atomic Swap Code Now Open Source

Developers have directly traded bitcoin for ethereum using an in-progress technology that aims to replace cryptocurrency exchanges with code.

Updated Sep 13, 2021, 7:01 a.m. Published Oct 11, 2017, 3:00 p.m.
arrow, sign

A team of cryptocurrency startup developers is open-sourcing technology that enables trustless trading between the bitcoin and ethereum blockchains.

Now available on GitHub, the code has already been used to execute what startup Altcoin Exchange claims is the first so-called "atomic swap" between the largest cryptocurrencies by market value. As a result of the release, a now larger community of developers can play around with and build on top of the code.

STORY CONTINUES BELOW
Don't miss another story.Subscribe to the Crypto Daybook Americas Newsletter today. See all newsletters

For example, using Altcoin Exchange's tech, developers can lock ether tokens in an ethereum smart contract that specifies the funds will only be sent if an equal amount of bitcoin is sent to a bitcoin address during a specific time window.

At a high level, that's how the developer team at Altcoin Exchange executed the trade (the ethereum code for the transfer can be viewed on the ethereum block explorer Etherscan), which shows how 0.12345 ether was traded for 0.12345 bitcoin.

But while that might seem experimental or complex, developers instead see the milestone as another step toward the tangible goal of replacing centralized cryptocurrency exchanges with the ability to swap assets directly between blockchains.

Long theorized, the idea of atomic swaps has been around since at least 2013, but it's seen a burst of new activity of late, with developers testing the technique to trade bitcoin for litecoin and bitcoin for zcash.

'Stepping stone'

Still, it's important to note the technology is in its early stages.

This means there are practical reasons atomic swaps might not be viable today, including the fact that one-to-one bitcoin-to-ether exchanges aren't exactly fair trades given the price disparity between the assets.

To this, Altcoin Exchange CEO Andrew Gazdecki told CoinDesk that the team set up the demonstration this way for "testing purposes," though the likely next step will be to trade bitcoin to ether for their respective U.S. dollar amounts or another fiat currency equivalent.

Further, though Gazdecki believes this marks a "milestone" for atomic swaps, he admitted developers still have plenty of problems to iron out before this new type of trade sees everyday use.

As such, he framed today's release as a small step toward a better alternative, adding:

"Decentralized trading is the next step forward in this industry."

Two-way sign image via Shutterstock

Більше для вас

Protocol Research: GoPlus Security

GP Basic Image

Що варто знати:

  • As of October 2025, GoPlus has generated $4.7M in total revenue across its product lines. The GoPlus App is the primary revenue driver, contributing $2.5M (approx. 53%), followed by the SafeToken Protocol at $1.7M.
  • GoPlus Intelligence's Token Security API averaged 717 million monthly calls year-to-date in 2025 , with a peak of nearly 1 billion calls in February 2025. Total blockchain-level requests, including transaction simulations, averaged an additional 350 million per month.
  • Since its January 2025 launch , the $GPS token has registered over $5B in total spot volume and $10B in derivatives volume in 2025. Monthly spot volume peaked in March 2025 at over $1.1B , while derivatives volume peaked the same month at over $4B.

Більше для вас

Crypto Markets Today: Bitcoin Slips Back Toward Danger Zone Ahead of Fed Decision

Yellow tape saying "Caution" blocks access to a dangerous area.(Gaertringen/Pixabay)

Bitcoin surrendered gains from earlier in the week, fell back toward $90,000 as traders braced for Wednesday’s Federal Reserve rate decision.

Що варто знати:

  • A 25 basis-point interest-rate cut has been priced in for weeks, and risk assets could drop on the news if no fresh catalysts emerge.
  • Tokens like HYPE, STRK, QNT and KAS fell 6%–9% in 24 hours
  • CoinMarketCap’s altcoin-season index sits at a cycle low of 18/100.
  • Bitcoin is down 20% over 90 days and more than half of the top-100 tokens have fallen at least 40%. FET and TIA are among the worst performers while ZEC, DASH, BNB and BCH stand out as rare stabilizers.