Bitcoin Forum
November 13, 2024, 07:18:46 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: My experience using the Counterparty Bitcoin DEX to buy XCP  (Read 29 times)
nutildah (OP)
Legendary
*
Offline Offline

Activity: 3164
Merit: 8566


Happy 10th Birthday to Dogeparty!


View Profile WWW
January 30, 2021, 02:37:27 AM
 #1

Counterparty (XCP) is an ancient 2nd layer protocol written on top of the Bitcoin blockchain. Next to OMNI (Mastercoin), it's the second oldest asset (token) creation protocol for cryptocurrency, with Tether (USDT) being the first famous token on the Bitcoin network.

Anyway, the Counterparty Exchange (only accessible through a Counterparty-enabled wallet) has been up and running since before DEX was even a term, and though the idea never really caught on, some people do continue to use it to buy and sell BTC and a limited number of Counterparty assets, which are generated through burning XCPs.

The most famous Counterparty asset is Pepecash, which is used to purchase Rare Pepes from a Counterparty-integrated website. This fad was strongest from 2016-2018, before Ethereum really began to dominate (what would go on to become) the NFT industry. Now L2 solutions and other "Eth Killers" are claiming the NFT space as well, but that's for another post.

One of the interesting things about the Counterparty Exchange is that it is one of the first DEXs, and seeing as how I think asset creation on Bitcoin might come back in a big way, I tried to set about using it to snap up some XCPs (which are themselves a token that uses the Bitcoin network to create and manage more tokens).

If you're at all curious, here's how the Counterparty Exchange works.

1. First you have to select the proper market pair (BTC/XCP):



2. Then I clicked on the orderbook and got an error that didn't sound good.



So I doublechecked the fees and sure enough, tx fees are at 71 sat/byte to fit in the next 3 blocks. That is one of the big limitations of Counterparty -- since they do use the Bitcoin blockchain, you can only place an order through creating a (costly) transaction.

3. But really the problem was it thought I wanted to buy the whole order of 995 XCP. Since this is just a test, I'm only gonna buy 20 XCP, which is roughly $41 at 0.00006 BTC a pop, the lowest order in the orderbook. This comes out slightly over $2 a coin, which is above the thinly-traded market value of $1.62 (it is currently only traded on a Japanese exchange and good luck opening an account there if you're not Japanese).



4. So I place the order with a fee of 49 sat/byte because its in the middle of taking forever and paying too much, and now the waiting game begins.



5. And here you go, you can see my BTC address has created a transaction that tells the exchange to place my order; not much to do except wait for my transaction to get confirmed and my order to be filled.



The funny thing is, you have to leave your browser window open or the market-side transaction might not actually ever confirm. It's a weird bug that they tried to resolve a long time ago, but it was just one of those quirks that ended up keeping their DEX from delivering the same experience as a centralized exchange.

It's been 10 minutes and the order is still pending, so I'm just gonna post this much of it for now and follow up when the transaction gets confirmed (fingers crossed).

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
jacafbiz
Hero Member
*****
Offline Offline

Activity: 2128
Merit: 530


PredX - AI-Powered Prediction Market


View Profile
January 30, 2021, 12:02:43 PM
 #2

Counterparty is one of the first DEFI project in the space, I believe it comes before its time. I stopped using the exchange in 2018 because of high fees and low volume, the liquidity on the exchange for most of the asset on it is close to zero. If the team can come together and improve on it to launch Counterparty 2.0, it would be very good with better UI and incentives to attracts volume. I don't know if it is possible to launch a DEX on Lighting network? this would be good, just thinking out

nutildah (OP)
Legendary
*
Offline Offline

Activity: 3164
Merit: 8566


Happy 10th Birthday to Dogeparty!


View Profile WWW
January 30, 2021, 11:34:55 PM
 #3

I don't know if it is possible to launch a DEX on Lighting network? this would be good, just thinking out

There's a few different token systems already on LN; Liquid by Blockstream comes to mind. But moving Counterparty to Lightning kind of defeats the purpose... I imagine a future use for XCP as a utility to create deeds, titles with their data embedded in the BTC blockchain. Nothing like that gets embedded forever in Lightning.

Part II. 'If At First You Don't Succeed...'

So, my first transaction timed out... It was a race between when the wallet would time out and my transaction for the order would get confirmed, and my transaction lost.



Today fees are a bit cheaper, so I put in a new order tx @ 49 sat/byte, which theoretically should get it in the next block. The dumb thing is it still shows my first order as open, which by any decent order matching engine would be filled by now. But anyway.



Sure, enough the second order was confirmed and matched in the next block:



There's a 1 block delay between the time the order tx is confirmed and the XCP is sent to my address.

I'll be back for Part III, hopefully the conclusion, next time.

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!