-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlinux_blocknet_blockdx_dxmakerbot_howto.txt
283 lines (214 loc) · 14.2 KB
/
linux_blocknet_blockdx_dxmakerbot_howto.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
################################
# WITHOUT WARRANTY OF ANY KIND #
################################
########################################################################
# welcome in Blocknet BlockDX dxmakerbot UNOFFICIAL tutorial for Linux(debian)
########################################################################
Hello everyone and Welcome in Unoffical dxmakerbot and blockdx tutorial.
This is very short, not-detailed tutorial how to:
-- main online sources
-- install software dependencies
-- store passwords in encrypted keepassx database
-- build litecoin wallet
-- build bitcoin wallet
-- build blocknet wallet
-- download BlockDX decentralized exchange
-- download dxmakerbot automatic BlockDX trading/liquidity/autosell bot
-- start whole ecosystem and trade or autotrade by bot
########################################################################
# main online sources
########################################################################
https://blocknet.co/
blocknet official webpage
https://github.com/blocknetdx/blocknet
blocknet official wallet source
https://github.com/blocknetdx/block-dx
blocknet official BlockDX decentralied exchange source
https://github.com/blocknetdx/dxmakerbot
blocknet official dxmakerbot trading bot source
https://github.com/nnmfnwl7/dxmakerbot/tree/fazer_dxmakerbot_latest_beta
blocknet unofficial dxmakerbot trading bot source by Fazer
https://bitcoincore.org/
bitcoin official website
https://github.com/bitcoin/bitcoin
bitcoin official wallet source
https://litecoin.org/
litecoin official website
https://github.com/litecoin-project/litecoin
litecoin official wallet source
########################################################################
# install software dependencies
########################################################################
# Some dependencies packages can be missing or otherwise named
apt install git gitg keepassx make cmake clang clang-tools clang-format libboost-all-dev wget qt5-qmake-bin qt5-qmake qttools5-dev-tools qttools5-dev qtbase5-dev-tools qtbase5-dev libqt5charts5-dev
########################################################################
# store passwords in encrypted keepassx database
########################################################################
# First time run keepassx:
Menu >> database >> new database >> Create UNIQUE nowhere else used
password with chars,special and number characters,
maybe write it down on some paper and hide until you 100% sure you
remember your password. NEVER Use password which you already using.
This password will be master password to all your generated passwords
encrypted database.
# Generate some new passwords will be used by wallets to decrypt:
Click >> Menu >> Entries >> Add Entry
Or >> CTRL+N
Fill >> Title >> Blocknet Trading Wallet
Click >> Gen. >> Choose length min 64 chars >> Check A-Z, a-z, 0-9 >> DO NOT check /*_ because entering special charaters password on command line can mean action. >>
check Exclude >> check Ensure >> Manually add some new passwords characters to be sure password is best random >> Click Accept
# Generate same way also new entry as >> Bitcoin Trading Wallet
# Generate same way also new entry as >> Litecoin Trading Wallet
# Save encrypted passwords database:
Menu >> database >> save database >> choose file name and save.
Or >> CTRL+S >> choose file name and save.
# good to save encrypted database file as ~/.keepassxxx/cryptotrading.kdbx because next tutorial commands...
# Backup!!! encrypted passwords database >> Copy saved file to EXTERNAL USB
# !!!It is not recommended to backup encrypted password database to email!!!
# running kepassx next time is good to run it by:
keepassx ~/.keepassxxx/cryptotrading.kdbx
othervise you can try to >> click >> menu >> databases >> recent databases
########################################################################
# build litecoin wallet
########################################################################
# to compile run these commands and after every command check if echo $? prints value zero, otherwise error has been occurred and you must check and find solution:
# also after running configure wallet you must check if at the end of debug there is information QT wallet YES, otherwise you must check and find solution, probably some missing packages to install.
mkdir -p ~/Downloads/cryptotrading/litecoin
cd ~/Downloads/cryptotrading/litecoin
git clone https://github.com/litecoin-project/litecoin.git git.source
cd git.source
sh autogen.sh
make -j4 -C depends bdb
tar xvzf depends/built/x86_64-pc-linux-gnu/bdb/*.tar.gz -C ./depends/x86_64-pc-linux-gnu/
./configure LDFLAGS="-L`pwd`/depends/x86_64-pc-linux-gnu/lib/" CPPFLAGS="-I`pwd`/depends/x86_64-pc-linux-gnu/include/" --disable-bench --disable-gui-tests --disable-tests --enable-static
make -j4
########################################################################
# build bitcoin wallet
########################################################################
# to compile run these commands and after every command check if echo $? prints value zero, otherwise error has been occurred and you must check and find solution:
# also after running configure wallet you must check if at the end of debug there is information QT wallet YES, otherwise you must check and find solution, probably some missing packages to install.
mkdir -p ~/Downloads/cryptotrading/bitcoin
cd ~/Downloads/cryptotrading/bitcoin
git clone https://github.com/bitcoin/bitcoin.git git.source
cd git.source
git checkout origin/0.20
sh autogen.sh
make -j4 -C depends bdb
tar xvzf depends/built/x86_64-pc-linux-gnu/bdb/*.tar.gz -C ./depends/x86_64-pc-linux-gnu/
./configure LDFLAGS="-L`pwd`/depends/x86_64-pc-linux-gnu/lib/" CPPFLAGS="-I`pwd`/depends/x86_64-pc-linux-gnu/include/" --disable-bench --disable-gui-tests --disable-tests --enable-static
make -j4
########################################################################
# build blocknet wallet
########################################################################
# to compile run these commands and after every command check if echo $? prints value zero, otherwise error has been occurred and you must check and find solution:
# also after running configure wallet you must check if at the end of debug there is information QT wallet YES, otherwise you must check and find solution, probably some missing packages to install.
mkdir -p ~/Downloads/cryptotrading/blocknet
cd ~/Downloads/cryptotrading/blocknet
git clone https://github.com/blocknetdx/blocknet.git git.source
cd git.source
git checkout origin/4.3.1
sh autogen.sh
make -j3 -C depends bdb boost
tar xvzf depends/built/x86_64-pc-linux-gnu/bdb/*.tar.gz -C ./depends/x86_64-pc-linux-gnu/
tar xvzf depends/built/x86_64-pc-linux-gnu/boost/*.tar.gz -C ./depends/x86_64-pc-linux-gnu/
./configure LDFLAGS="-L`pwd`/depends/x86_64-pc-linux-gnu/lib/" CPPFLAGS="-I`pwd`/depends/x86_64-pc-linux-gnu/include/" --with-boost-libdir=`pwd`/depends/x86_64-pc-linux-gnu/lib/ --disable-bench --disable-gui-tests --disable-tests --enable-reduce-exports --enable-static
make -j3
# in case of compilation errors you can try with clang and continue with configure... command
make clean
export CC=clang
export CXX=clang++
########################################################################
# download blockdx decentralized exchange
########################################################################
# using wget link can be deprecated, you can check if newer version is available by visiting webpage https://github.com/blocknetdx/block-dx/releases
mkdir -p ~/Downloads/cryptotrading/blockdx
cd ~/Downloads/cryptotrading/blockdx
wget https://github.com/blocknetdx/block-dx/releases/download/v1.8.0/BLOCK-DX-1.8.0-linux.tar.gz
tar xvzf BLOCK-DX-1.8.0-linux.tar.gz
########################################################################
# download dxmakerbot automatic BlockDX trading/liquidity/autosell bot
########################################################################
# using unofficial fazers beta version of dxmakerbot because official repository is very deprecated
mkdir -p ~/Downloads/cryptotrading/dxmakerbot
cd ~/Downloads/cryptotrading/dxmakerbot
git clone https://github.com/nnmfnwl7/dxmakerbot.git git.source
cd git.source
git checkout origin/fazer_dxmakerbot_latest_alfa
########################################################################
# first time run and configure all wallets and backup wallets
########################################################################
# if you not have keepassx running and decrypted, run command
keepassx ~/.keepassxxx/cryptotrading.kdbx
enter password >> push enter
# first time run blocknet wallet by command:
cd ~/Downloads/cryptotrading/blocknet/git.source/src/qt/ && ./blocknet-qt -printtoconsole -datadir=${HOME}/.blocknet/ -wallet=wallet_block_cryptotrading -classic=1
# first time run litecoin wallet by command:
cd ~/Downloads/cryptotrading/litecoin/git.source/src/qt/ && ./litecoin-qt -printtoconsole -datadir=${HOME}/.litecoin/ -wallet=wallet_ltc_cryptotrading
# first time run bitcoin wallet by command:
cd ~/Downloads/cryptotrading/bitcoin/git.source/src/qt/ && ./bitcoin-qt -printtoconsole -datadir=${HOME}/.bitcoin/ -wallet=wallet_btc_cryptotrading
# wait until wallets are running and for all wallets
click >> menu >> Setting >> Encrypt wallet >> click on password input >> click on keepassx wallet to maximize >> push ctrl + v >> keepassx will minimize and fill password
# wait until process done, some wallets will require restart
# as not all wallets have HD key generation feature enabled, best practice is to generate some few maybe 10 new addresses and name it before backing up wallet.
click >> TAB >> receive >> fill Label 001 >> click >> Request payment >> fill Label 002 >> click >> ...next...
# Backup!!! encrypted blocknet wallet.dat file >> Copy saved file to EXTERNAL USB
~/.blocknet/wallet_block_cryptotrading/wallet.dat
or click >> menu >> file >> backup wallet and save it somewhere on EXTERNAL USB >> name it blocknet_wallet.dat
# Backup!!! encrypted litecoin wallet.dat file >> Copy saved file to EXTERNAL USB
~/.litecoin/wallet_ltc_cryptotrading/wallet.dat
or click >> menu >> file >> backup wallet and save it somewhere on EXTERNAL USB >> name it litecoin_wallet.dat
# Backup!!! encrypted bitcoin wallet.dat file >> Copy saved file to EXTERNAL USB
~/.bitcoin/wallet_btc_cryptotrading/wallet.dat
or click >> menu >> file >> backup wallet and save it somewhere on EXTERNAL USB >> name it bitcoin_wallet.dat
# Great is now you have all backups secured and done :)
Restoring wallet means turning off wallets and restore .dat files and rename em to wallet.dat
########################################################################
# configure BlockDX and dxmakerbot
########################################################################
# first time run BlockDX to configure it
cd ~/Downloads/cryptotrading/blockdx/BLOCK-DX-1.7.0-linux/ && ./block-dx
# if you experience an error about sandboxing application you can try alternative command
cd ~/Downloads/cryptotrading/blockdx/BLOCK-DX-1.7.0-linux/ && ./block-dx --no-sandbox
choose quick setup >> and handle :)
# Once blockdx is configured, automatically copy rpc user and password from BlockDX to dxmakerbot configuration
cd ~/Downloads/cryptotrading/dxmakerbot/git.source
echo "tradingaddress = {}" >> utils/dxsettings.py
echo "rpcport = 41414" >> utils/dxsettings.py
tempusrpass=`cat ~/.blocknet/blocknet.conf | grep rpcuser | cut -d "=" -f2`
echo "rpcuser = '$tempusrpass'" >> utils/dxsettings.py
tempusrpass=""
tempusrpass=`cat ~/.blocknet/blocknet.conf | grep rpcpassword | cut -d "=" -f2`
echo "rpcpassword = '$tempusrpass'" >> utils/dxsettings.py
tempusrpass=""
# copy example dxmakerbot v2 configurations
cp howto/examples/bot_v2_sell_block_buy_ltc.py ./bot_v2_sell_block_buy_ltc.py
cp howto/examples/bot_v2_sell_ltc_buy_block.py ./bot_v2_sell_ltc_buy_block.py
# manually edit config files by your needs, but at least --makeraddress and --takeraddress is needed to edit
edit bot_v2_sell_block_buy_ltc.py
edit bot_v2_sell_ltc_buy_block.py
########################################################################
# start whole ecosystem and trade or autotrade by bot
########################################################################
# if you not have keepassx running and decrypted, run command
keepassx ~/.keepassxxx/cryptotrading.kdbx
enter password >> push enter
# if you not have running blocknet wallet and decrypted run it by command:
cd ~/Downloads/cryptotrading/blocknet/git.source/src/qt/ && ./blocknet-qt -printtoconsole -datadir=${HOME}/.blocknet/ -wallet=wallet_block_cryptotrading -classic=1
Click >> menu >> setting >> unlock wallet >> click on password entry >> maximize keepassx >> click on blocknet >> push ctrl+v >> password will be auto entered.
# run litecoin wallet by command:
cd ~/Downloads/cryptotrading/litecoin/git.source/src/qt/ && ./litecoin-qt -printtoconsole -datadir=${HOME}/.litecoin/ -wallet=wallet_ltc_cryptotrading
Click >> menu >> window >> console >> write >> walletpassphrase "" 9999999999 >> let cursor in the middle of "" characters >> maximize keepassx >> click on litecoin >> push ctrl+v >> password will be auto entered.
# run bitcoin wallet by command:
cd ~/Downloads/cryptotrading/bitcoin/git.source/src/qt/ && ./bitcoin-qt -printtoconsole -datadir=${HOME}/.bitcoin/ -wallet=wallet_btc_cryptotrading
Click >> menu >> window >> console >> write walletpassphrase "" 9999999999 >> let cursor in the middle of "" characters >> maximize keepassx >> click on bitcoin >> push ctrl+v >> password will be auto entered.
# run BlockDX exchange
cd ~/Downloads/cryptotrading/blockdx/BLOCK-DX-1.8.0-linux/ && ./block-dx --no-sandbox
click on >> top TAB >> select market pair >> click BLOCK >> click LTC >> click select
# finally run makerbots by commands
# run bot which sells blocknet for litecoin
python3 dxmakerbot_v2_run.py --config bot_v2_sell_block_buy_ltc
# run bot which sells litecoin for blocknet
python3 dxmakerbot_v2_run.py --config bot_v2_sell_ltc_buy_block
# watch makerbots console for errors, watch BlockDX for newly created Active orders.
# when you want to turn off makerbots and let wallets running do not forget to cancel opened orders, you can do it directly by BlockDX interface in section active orders :)
# We done it :)