Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##############################
- # Sovereigncoin Wallet #
- ##############################
- #####################LEGEND#####################
- # > = command to copy # ##With this tutorial you can compile the following##
- # - = break in command do not copy these # # Bitcoin wallet #
- # # = Instruction line # # litecoin wallet #
- ################################################ # Dogecoin wallet #
- # ATTN new alt coin devs you can also use this tut #
- ####################################################
- ######Instructions to compile your own wallet#######
- # sovereigncoind <yourcoind> #
- # sovereigncoin <yourcoin> #
- # https://github.com/youracc/yourrepo #
- ####################################################
- ##########################What You Need#####################################
- # A computer with at least 1GB of RAM and Ideally at least two processors, #
- # especially if you want this to be a public node. #
- # Following operating system's Ubuntu,Linux,Debain #
- ############################################################################
- #Okay, first thing’s first. You shouldn’t be logging in as root, because you know better. Let’s add a new user:
- --------------------------------------------
- > useradd -m -s /bin/bash -g sudo svcnode -
- --------------------------------------------
- #Now let’s change our new user’s password:
- --------------------
- > passwd svcnode -
- --------------------
- #Enter your new password twice. Logout of root and log back in as your new user. If you SSH’ed into your machine, I think you
- know what to do.
- #Let’s update, upgrade, and install our dependencies. Copy paste the command below and enter “Y” where applicable:
- -------------------------
- > sudo apt-get update -
- -------------------------
- > sudo apt-get upgrade -
- ----------------------------------------------------------------------------------------------------------------
- > sudo apt-get install build-essential libssl-dev libboost-all-dev git libdb5.1++-dev libminiupnpc-dev screen -
- ----------------------------------------------------------------------------------------------------------------
- #Now Let’s download Sovereigncoin
- -------------------------------------------------------------
- > git clone https://github.com/cryptocurinfo/sovereigncoin -
- -------------------------------------------------------------
- #If you have < 2GB of RAM on the system, you won’t be able to compile sovereigncoin. We’ll have to set up a swapfile.
- ---------------
- > cd /var/tmp -
- ------------------------------------------------------
- > dd if=/dev/zero of=swapfile1 bs=1024 count=1048576 -
- ------------------------------------------------------
- > mkswap /var/tmp/swapfile1 -
- ----------------------------------------
- > sudo /sbin/swapon /var/tmp/swapfile1 -
- ----------------------------------------
- #Let’s add a little more security:
- -------------------------------------------
- > sudo chown root:root /var/tmp/swapfile1 -
- -------------------------------------------
- > sudo chmod 0600 /var/tmp/swapfile1 -
- --------------------------------------
- #Let’s ensure our swap file is working:
- -----------
- > free -m -
- -----------
- #Finally, let’s add an fstab entry so our swap file persists through a reboot:
- ----------------------
- > sudo vi /etc/fstab -
- ----------------------
- #If you aren't familiar with Vi, that’s okay. To edit the file, hit the letter “i”. Navigate down to the end of the file and add
- a new line:
- ---------------------------------------------
- > /var/tmp/swapfile1 swap swap defaults 0 0 -
- ---------------------------------------------
- #To save your changes, hit “Esc” and then enter “:wq” and hit enter.
- #Okay, back to compiling sovereigncoin. Ensure you are in the “/sovereigncoin/src/” directory and enter:
- ------
- > cd -
- --------------------------
- > cd sovereigncoin/src/ -
- ------------------------------------------
- > chmod +x leveldb/build_detect_platform -
- ------------------------------------------
- > make -f makefile.unix -
- -------------------------
- #This will take some time, if all goes well you should be able to type “ls” and you will see a file called “sovereigncoind”. Don’t start it just yet!
- ------
- > ls -
- ------
- #Copy sovereigncoind to /usr/bin:
- -----------------------------------
- > sudo cp sovereigncoind /usr/bin -
- -----------------------------------
- #We need to set up our sovereigncoin.conf file:
- --------------------------
- > mkdir ~/.sovereigncoin -
- --------------------------
- > cd -
- --------------------------------
- > nano ~/.sovereigncoin/sovereigncoin.conf -
- --------------------------------
- #Once again, press the “i” key to edit and then paste the following into the file:
- ----------------------------------
- server=1
- gen=0
- rpcport=3333
- rpcallowip=127.0.0.1
- rpcuser=yourusername
- rpcpassword=areallystrongpassword
- -----------------------------------
- #Let’s start the sovereigncoin Daemon: -
- -----------------------------------
- > sovereigncoind --daemon -
- ---------------------------
- #sovereigncoind may hang up here, just hit “CTRL+C” to gain control of your terminal again. To ensure sovereigncoind is running, type:
- --------------------------
- > sovereigncoind getinfo -
- --------------------------
- ######################################
- # Additional Sovereigncoind Commands #
- ######################################
- #addmultisigaddress <nrequired> <'["key","key"]'> [account]
- #addnode <node> <add|remove|onetry>
- #backupwallet <destination>
- #createmultisig <nrequired> <'["key","key"]'>
- #createrawtransaction [{"txid":txid,"vout":n},...] {address:amount,...}
- #decoderawtransaction <hex string>
- #dumpprivkey <sovereigncoinaddress>
- #getaccount <sovereigncoinaddress>
- #getaccountaddress <account>
- #getaddednodeinfo <dns> [node]
- #getaddressesbyaccount <account>
- #getbalance [account] [minconf=1]
- #getblock <hash>
- #getblockcount
- #getblockhash <index>
- #getblocktemplate [params]
- #getconnectioncount
- #getdifficulty
- #getgenerate
- #gethashespersec
- #getinfo
- #getmininginfo
- #getnewaddress [account]
- #getpeerinfo
- #getrawmempool
- #getrawtransaction <txid> [verbose=0]
- #getreceivedbyaccount <account> [minconf=1]
- #getreceivedbyaddress <sovereigncoinaddress> [minconf=1]
- #gettransaction <txid>
- #gettxout <txid> <n> [includemempool=true]
- #gettxoutsetinfo
- #getwork [data]
- #help [command]
- #importprivkey <sovereigncoinprivkey> [label] [rescan=true]
- #keypoolrefill
- #listaccounts [minconf=1]
- #listaddressgroupings
- #listlockunspent
- #listreceivedbyaccount [minconf=1] [includeempty=false]
- #listreceivedbyaddress [minconf=1] [includeempty=false]
- #listsinceblock [blockhash] [target-confirmations]
- #listtransactions [account] [count=10] [from=0]
- #listunspent [minconf=1] [maxconf=9999999] ["address",...]
- #lockunspent unlock? [array-of-Objects]
- #move <fromaccount> <toaccount> <amount> [minconf=1] [comment]
- #sendfrom <fromaccount> <tosovereigncoinaddress> <amount> [minconf=1] [comment] [comment-to]
- #sendmany <fromaccount> {address:amount,...} [minconf=1] [comment]
- #sendrawtransaction <hex string>
- #sendtoaddress <sovereigncoinaddress> <amount> [comment] [comment-to]
- #setaccount <sovereigncoinaddress> <account>
- #setgenerate <generate> [genproclimit]
- #settxfee <amount>
- #signmessage <sovereigncoinaddress> <message>
- #signrawtransaction <hex string> [{"txid":txid,"vout":n,"scriptPubKey":hex,"redeemScript":hex},...] [<privatekey1>,...] [sighashtype="ALL"]
- #stop
- #submitblock <hex data> [optional-params-obj]
- #validateaddress <sovereigncoinaddress>
- #verifymessage <sovereigncoinaddress> <signature> <message>
- #walletlock
- #walletpassphrase <passphrase> <timeout>
- #walletpassphrasechange <oldpassphrase> <newpassphrase>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement