Run your own decentralised exchange

in #bitshares8 years ago (edited)

You can now run your own decentralised exchange node and trade STEEM with:


all using a Light Wallet with built-in deposit/withdraw and FIAT gateway.

A few steps will have you up and running. The system uses a Light Wallet which can connect to trusted secure servers or your own local blockchain (run from the command line).

P2P Decentralised Exchange Node setup for Ubuntu x64 - ( copy and paste to your terminal )
You can run on your own computer, a local server, VPS or VirtualBox.

### 1. Download the software to build for Ubuntu Linux x64 using git:

# update your system and install ntp
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install ntp
sudo dpkg-reconfigure tzdata # to set your time zone

# Install the build tools
sudo apt-get install gcc g++ cmake make libbz2-dev libdb++-dev libdb-dev libssl-dev openssl libreadline-dev autoconf libtool git libncurses-dev build-essential kernel-package libncurses-dev doxygen libboost-all-dev autotools-dev automake

# you may have to run this on a fresh install and reboot
#sudo dpkg --configure -a
#sudo reboot

# download the P2P node software
git clone

# build the P2P node software
cd bitshares-2
git checkout bitshares
git describe --tags
git submodule update --init --recursive
cmake -D CMAKE_BUILD_TYPE=Release .
make witness_node cli_wallet

### 2. Run your new P2P Decentralised Exchange Node

~/bitshares-2/programs/witness_node/witness_node --rpc-endpoint "" # will allow only your computer's wallet to connect to the blockchain
# ~/bitshares-2/programs/witness_node/witness_node --rpc-endpoint "" # will allow anyone to connect their wallet to your copy of the blockchain

# you can also strip and copy witness_node to your bin folder for easy blockchain startup

mkdir ~/bin
strip ./programs/witness_node/witness_node
strip ./programs/cli_wallet/cli_wallet
cp ./programs/witness_node/witness_node ~/bin
cp ./programs/cli_wallet/cli_wallet ~/bin

Check the block explorer for the latest block

I have used VirtualBox to run the blockchain on Ubuntu.

Remember to install openssh and forward ports in VirtualBox host
Network settings then ssh in (you can use putty on windoze).

# ssh [email protected] -p 3022

3. The fun part - download the Light Wallet software for your OS

Download the Light Wallet here:
BitShares Light Wallet


Set your user name and password (if you found the post useful, you could add by24seven as your Referrer and get a few Free PERKS too)

Connect to your local chain after it has synchronised
In the Light Wallet under settings * API CONNECTION click on wss:// and change it to your own blockchain node from part 2


VirtualBox linux

or server ip

Then click CONFIRM

If you are using a VPS it is recommended you use ssh to connect to the API eg:
ssh -L 6080:localhost:8090 user@vpsserverip
then connect to the API with
in the Light Wallet

Welcome to your own Decentralised Exchange

More help can be found here:,45.0.html


if you are lazy you can use these Decentralised Exchanges in your chromium browser! (no need to install software and a few Free PERKS too)


Remember to back-up your wallet, as only you have the private keys to access your funds to trade on all these Decentralised Exchanges.

#bitcoin #litecoin #gold #silver #steem


"Remember to back-up your wallet, as only you have the private keys to access your funds to trade on all these Decentralised Exchanges."

This sentence shows exactly why I'm opposed to promoting trading OPEN.STEEM and advertising it as decentralized.
Users don't have the convenience of password resets and 2FA, but still have to take all the risks of a centralized exchange (issuer getting hacked and funds stolen, or simply running away). What's the big plus that makes it so great? I cannot see it.

I did not advertise OPEN.STEEM as decentralized - The exchange is decentralized.
You can also set-up a STEEM SmartCoin if you want to trade a decentralized coin on a decentralized exchange.
See BTC or ALTCAP for an example.

You said I could trade STEEM on a decentralized exchange, and that's just not true.

I'm not blaming you for using that term, because in BTS-land it just works like that. But: everyone else expects decentralized storage when talking about a decentralized exchange. An exchange without gateways is useless, and when it comes to decentralization the gateway is much more important than the trading backend. What exactly is the pro for the user when only the trading is decentralized?

IMO that's even one of the main reasons why BTS lacks success. If it delivered what everyone expected from a decentralized exchange it'd be a killer. With centralized gateways, it's unnecessary. NXT MGW is more decentralized than anything on BTS (yes, except SmartCoins, but that's another story).

This is 100% agreed imo. If Bitshares doesn't do this, someone else will. And then...where will Bitshares be?
What do you think about IPFS and how should bitshares best fix this in your opinions?

On a positive endnote, however, I think there is one obvious benefit to bts today--- it significantly lowers the barrier to entry for running your own centralized exchange---is cool though :)

If you would also like to provide a #backup #gateway and #WebSocket access to the #bitshares platform for bitshares #shareholders comparable to please have a look at this post - Distributed Access to the BitShares Decentralised Exchange

hi, great post. I am busy setting up on azure vm.

If you need any help please post here and/or join Bitshares Telegram Chat

Had some issues with some packages: boost, flex, bison, but seems errors are ok now! might contact you still for some help!

btw, which linux version would be best to use? ubuntu? version? 12.04 or 15.10 or latest? what server would be best, cores and memory?

Looks interesting! Are there any plans to support Monero too?

I need to upgrade my server capacity I want to run a node from my home


Post date a bit; but it's still the best tuto I have founded.
However I'm stuck at step 1Capture d’écran 2017-12-19 à 20.28.55.png

Coin Marketplace

STEEM 0.28
TRX 0.12
JST 0.032
BTC 66877.70
ETH 3111.64
USDT 1.00
SBD 3.76