Skip to content

Latest commit

 

History

History
208 lines (98 loc) · 1.37 MB

ATM-setup-tutorial.md

File metadata and controls

208 lines (98 loc) · 1.37 MB

How to setup DCT with General Bytes ATM

DCore Wallet

Custom wallet setup

Steps:

Connect to the General Bytes server via terminal/command line interface

git clone https://gitlab.com/yangwao/decent_atm.git

Check the version of docker

docker version

If you dont have docker

sudo apt-get install docker-ce

Or look further here

https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1

wget -qO- https://get.docker.com/ | sh

Replace <username> with your username on the machine

(On Linux use whoami)

sudo usermod -aG docker <username>

    logout from server and login again

Enter custom DCore wallet folder

cd decent_atm

sudo su

sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose

    docker-compose -f production.yml up -d

    docker ps

Now you should see 3 decent docker images running

decent_atm_atm_1

dcore-atm-cliwallet

dcore-atm-mainnet

Import your private key/account into the wallet

  • --You do this by making a HTTP call to localhost:9696 and providing your account name and private key
  • --You can install httpie for making http calls from command line

https://httpie.org/doc#installation

    http -b :9696/de/initialSetup/\<account\_name\_on\_decentnetwork\>,\<privateKey\>

Thats all, with this step your Dcore wallet is up and running. Make sure your imported account has enough balance on it. If it doesn't, you need to send some DCT to it.

The API for wallet is here

https://gitlab.com/yangwao/decent_atm/blob/master/api.md

You can check if account was properly imported by

http -b :9696/d/listMyAccounts

Check the balance on imported accounts

http -b :9696/balance

Complete wallet API is here

https://gitlab.com/yangwao/decent_atm/blob/master/api.md

Library installation on server

File: batm_server_extensions_extra-assembly-0.1.0-SNAPSHOT.jar

TODO How to download jar file onto server the most conveniently ?

Use cyberduck app on MAC to upload JAR onto server

switch to root

sudo su

Enter General Bytes server folder:

cd /batm/app/master/extensions

copy JAR extension into this folder

cp </path_where_you_downloaded_jar> .

cd ../../..

restart the server

./batm-manage stop all

./batm-manage start all

This part is done, now go into admin setup

Admin setup

Wallet setup

Go to Crypto settings

Add

At this stage you should see DCT in the menu Crypto Currency

Set parameters EXACTLY like on this screenshot

In the Hot Wallet Buy - parameters put

http:admin:admin:localhost:9696

Click SUBMIT

Go to Terminals and pick your terminal where you want to add DCT coin

In terminal settings in Currencies part add DCT crypto currency

In Crypto Settings part set DCT settings as you name them

Click MODIFY

Now you are all ready to go. You might need to restart physical machine in order to have new settings to show up

Bittrex exchange integration

Go to Bittrex exchange and click Settings.

Click on API Keys to view key settings.

Add new key, and allow all settings like you see in this screenshot

Click Save, put your Authenticator key - two factor authentication (if you don't have it activated, you will need to in Two-Factor Authentication in the same Settings screen)

Now you will able to see Key and Secret, like this

Write down the Key and the Secret in the safe place, because this is the only time you are able to copy a key secret. If you lose it, you will later need to re-create new key to see new secret.

Now go to General Bytes admin.

Add new Crypto setting, where you setup new DCT buy configuration with Bittrex exchange.

You should see option of Bittrex exchange visible

Put parameters in the format

Apikey:secret

E.g.

9c1b049844d84849f7a606311953b758:1607470db849f0sdb56eb58df156f672

Choose appropriate strategy, and you are good to go.

IMPORTANT:

TODO EXPLAIN BTC ? DCT ? USD Storage of coins and how it works.

NOTES

  1. If you upgraded server or terminal, you need to copy library into extension folder again, Your ATM will not work due to connection errors.

Go check library installation guide