Skip to content

helleniccoin/HNC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

HellenicCoin(HNC) Node instractions

Operating system: Ubuntu Server 18.04 LTS

(Recomented 4vCPU 8 GB RAM)

1. Update your Ubuntu machine.

sudo apt-get update

sudo apt-get upgrade

2. Install the required dependencies.

sudo apt-get install libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libdb-dev libdb++-dev libminiupnpc-dev

3. Download & Extract the tar file.

wget "https://github.com/helleniccoin/HNC/raw/master/helleniccoin-daemon-linux.tar.gz" -O helleniccoin-daemon-linux.tar.gz

tar -xzvf helleniccoin-daemon-linux.tar.gz

4. Install the daemon.

sudo mv helleniccoind /usr/bin/

5. Create the config file.

mkdir $HOME/.helleniccoin

nano $HOME/.helleniccoin/helleniccoin.conf

6. Paste the following lines in helleniccoin.conf.

rpcuser=rpc_hellenic_coin

rpcpassword=a_very_strong_password

rpcallowip=127.0.0.1

rpcport=16341

tcpport=16342

listen=1

server=1

txindex=1

staking=0

daemon=1

addnode=134.122.101.163

addnode=159.89.4.26

addnode=206.189.100.130

addnode=46.101.129.115

addnode=143.110.237.119

7. Start your node with the following command.

helleniccoind

HellenicCoin node RPC commands

this is the full list of RPC commands, You can also extacted from the node if you type helleniccoind --help

Usage:

helleniccoind [options]

helleniccoind [options] [params] Send command to -server or helleniccoind

helleniccoind [options] help List commands

helleniccoind [options] help Get help for a command

Options:

-? This help message

-conf= Specify configuration file (default: helleniccoin.conf)

-pid= Specify pid file (default: helleniccoind.pid)

-datadir=

Specify data directory

-wallet=

Specify wallet file (within data directory)

-dbcache= Set database cache size in megabytes (default: 25)

-dblogsize= Set database disk log size in megabytes (default: 100)

-timeout= Specify connection timeout in milliseconds (default: 5000)

-proxy=ip:port Connect through SOCKS5 proxy

-tor=ip:port Use proxy to reach tor hidden services (default: same as -proxy)

-dns Allow DNS lookups for -addnode, -seednode and -connect

-port= Listen for connections on (default: 13500 or testnet: 23500)

-maxconnections= Maintain at most connections to peers (default: 125)

-addnode= Add a node to connect to and attempt to keep the connection open

-connect= Connect only to the specified node(s)

-seednode= Connect to a node to retrieve peer addresses, and disconnect

-externalip= Specify your own public address

-onlynet= Only connect to nodes in network (IPv4, IPv6 or Tor)

-discover Discover own IP address (default: 1 when listening and no -externalip)

-listen Accept connections from outside (default: 1 if no -proxy or -connect)

-bind= Bind to given address. Use [host]:port notation for IPv6

-dnsseed Query for peer addresses via DNS lookup, if low on addresses (default: 1 unless -connect)

-forcednsseed Always query for peer addresses via DNS lookup (default: 0)

-synctime Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)

-banscore= Threshold for disconnecting misbehaving peers (default: 100)

-bantime= Number of seconds to keep misbehaving peers from reconnecting (default: 86400)

-maxreceivebuffer= Maximum per-connection receive buffer, *1000 bytes (default: 5000)

-maxsendbuffer= Maximum per-connection send buffer, *1000 bytes (default: 1000)

-upnp Use UPnP to map the listening port (default: 0)

-paytxfee= Fee per KB to add to transactions you send

-mininput= When creating transactions, ignore inputs with value less than this (default: 0.01)

-testnet Use the test network

-debug= Output debugging information (default: 0, supplying is optional) If is not supplied, output all debugging information.

can be: addrman, alert, db, lock, rand, rpc, selectcoins, mempool, net, coinage, coinstake, creation, stakemodifier.

-logtimestamps Prepend debug output with timestamp

-shrinkdebugfile Shrink debug.log file on client startup (default: 1 when no -debug)

-printtoconsole Send trace/debug info to console instead of debug.log file

-regtest Enter regression test mode, which uses a special chain in which blocks can be solved instantly. This is intended for regression testing tools and app development.

-rpcuser= Username for JSON-RPC connections

-rpcpassword= Password for JSON-RPC connections

-rpcport= Listen for JSON-RPC connections on (default: 16341 or testnet: 26341)

-rpcallowip= Allow JSON-RPC connections from specified IP address

-rpcconnect= Send commands to node running on (default: 127.0.0.1)

-rpcwait Wait for RPC server to start

-rpcthreads= Set the number of threads to service RPC calls (default: 4)

-blocknotify= Execute command when the best block changes (%s in cmd is replaced by block hash)

-walletnotify= Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)

-confchange Require a confirmations for change (default: 0)

-alertnotify= Execute command when a relevant alert is received (%s in cmd is replaced by message)

-upgradewallet Upgrade wallet to latest format

-keypool= Set key pool size to (default: 100)

-rescan Rescan the block chain for missing wallet transactions

-salvagewallet Attempt to recover private keys from a corrupt wallet.dat

-checkblocks= How many blocks to check at startup (default: 500, 0 = all)

-checklevel= How thorough the block verification is (0-6, default: 1)

-loadblock= Imports blocks from external blk000?.dat file

-maxorphanblocksmib= Keep at most MiB of unconnectable blocks in memory (default: 40)

-datacarriersize Maximum size of data in data carrier transactions we relay and mine (default: 15000)

Block creation options:

-blockminsize= Set minimum block size in bytes (default: 0) -blockmaxsize= Set maximum block size in bytes (default: 250000)

SSL options: (see the Bitcoin Wiki for SSL setup instructions)

-rpcssl Use OpenSSL (https) for JSON-RPC connections

-rpcsslcertificatechainfile=<file.cert> Server certificate file (default: server.cert)

-rpcsslprivatekeyfile=<file.pem> Server private key (default: server.pem)

-rpcsslciphers= Acceptable ciphers (default: TLSv1.2+HIGH:TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!3DES:@STRENGTH)

Active wallet commands

addmultisigaddress <'["key","key"]'> [account]

addnode <add|remove|onetry>

addredeemscript [account]

backupwallet

burn [hex string]

burnwallet [hex string] [force]

checkkernel [{"txid":txid,"vout":n},...] [createblocktemplate=false]

checkwallet

createrawtransaction [{"txid":txid,"vout":n},...] {address:amount,...}

decoderawtransaction

decodescript

dumpprivkey

dumpwallet

encryptwallet

getaccount

getaccountaddress

getaddednodeinfo [node]

getaddressesbyaccount

getbalance [account] [minconf=1]

getbestblockhash

getblock [txinfo]

getblockbynumber [txinfo]

getblockcount

getblockhash

getblocktemplate [params]

getcheckpoint

getconnectioncount

getdifficulty

getinfo

getmininginfo

getnettotals

getnewaddress [account]

getnewpubkey [account]

getpeerinfo

getrawmempool

getrawtransaction [verbose=0]

getreceivedbyaccount [minconf=1]

getreceivedbyaddress [minconf=1]

getstakesubsidy

getstakinginfo

getsubsidy [nTarget]

gettransaction

getwork [data]

getworkex [data, coinbase]

help [command]

importprivkey [label] [rescan=true]

importwallet

keypoolrefill [new-size]

listaccounts [minconf=1]

listaddressgroupings

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",...]

makekeypair [prefix]

move [minconf=1] [comment]

ping

repairwallet

resendtx

reservebalance [ [amount]]

sendalert [cancelupto]

sendfrom [minconf=1] [comment] [comment-to]

sendmany {address:amount,...} [minconf=1] [comment]

sendrawtransaction

sendtoaddress [comment] [comment-to]

setaccount

settxfee

signmessage

signrawtransaction [{"txid":txid,"vout":n,"scriptPubKey":hex,"redeemScript":hex},...] [,...] [sighashtype="ALL"]

stop

submitblock [optional-params-obj]

validateaddress

validatepubkey

verifymessage

About

The new PoS version of HellenicCoin (HNC)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published