Setup Cardano Coin in Ubuntu 16

Posted By : Jasgeet Singh | 20-Mar-2018

I am assuming you already know about cardano coin, in this blog I am only talking about cardano coin setup. I have recently did cardano setup in my project, my recommendation is to build Cardano SL (Cardano settlement layer is actually a cryptographic currency, where Cardano itself is blockchain platform) from its source code.

Steps


1. $ git clone https://github.com/input-output-hk/cardano-sl.git
2. $ cd cardano-sl

 

 

Checkout to the Master branch, 


3. $ git checkout master

 

 

It is very easy to setup Cardano using Nix and its also strongly recommended mode in their website.


4. curl https://nixos.org/nix/install | sh
5. $ sudo mkdir -p /etc/nix
6. $ sudo vi /etc/nix/nix.conf

 

 

7. put these lines in nix.conf

binary-caches            = https://cache.nixos.org https://hydra.iohk.io
binary-cache-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=

 

In order to build Cardano SL node, we must need to execute two cardano components i.e, cardano-sl-static, cardano-sl-wallet-static

8. $ nix-build -A cardano-sl-static --cores 0 --max-jobs 2 --no-build-output --out-link master
9. $ nix-build -A cardano-sl-wallet-static --cores 0 --max-jobs 2 --no-build-output --out-link master
 

 

After performing these steps , we need to run Cardano SL wallet build script

10. cd cardano-sl
11. $ ./scripts/build/cardano-sl.sh
 

 

Now we are ready to connect with cardano mainnet, 

12.$ nix-build -A connectScripts.mainnetWallet -o connect-to-mainnet
13.$ ./connect-to-mainnet
 

 

You can check by hitting this url in postman https://localhost:8090/api/settings/sync/progress , it will give block count in response

 

Good luck Forks !

About Author

Author Image
Jasgeet Singh

Jasgeet is a Sr. Lead developer .He is an experienced Groovy and Grails and has worked on designing & developing B2B and B2C portals using Grails technologies.

Request for Proposal

Name is required

Comment is required

Sending message..