Parsicoind

From ParsiCoin (PARS) | Wiki
Jump to navigation Jump to search

Parsicoind is a Console Software which manage the BlockChain, it's needed to run a full node. it's a necessary Tool for those who wanted to make their own Pool or want to create a Remote Node Server.

Commands

--help = Produce help message
--version = Output version information
--data-dir = Specify data directory
--config-file = Specify configuration file
--log-file
--log-level(=2)
--no-console = Disable daemon console commands
--restricted-rpc = Restrict RPC to view only commands to prevent abuse
--testnet = Used to deploy test nets. Checkpoints and hardcoded seeds are ignored, network id is changed. Use it with --data-dir flag.
--enable-cors = Adds header 'Access-Control-Allow-Origin' to the daemon's RPC responses. Uses the value as domain. Use * for all
--fee-address = Sets fee address for light wallets to the daemon's RPC responses.
--view-key = Sets private view key to check for masternode's fee.
--enable-blockchain-indexes = Enable blockchain indexes
--print-genesis-tx = Prints genesis' block tx hex to insert it to config and exits
--rpc-bind-ip (=127.0.0.1)
--rpc-bind-port (=18240)
--p2p-bind-ip (=0.0.0.0) = Interface for p2p network protocol
--p2p-bind-port (=17240) = Port for p2p network protocol
--p2p-external-port (=0) = External port for p2p network protocol (if port forwarding used with NAT)
--allow-local-ip = Allow local ip add to peer list, mostly in debug purposes
--add-peer = Manually add peer to local peerlist
--add-priority-node = Specify list of peers to connect to and attempt to keep the connection open
--add-exclusive-node = Specify list of peers to connect to only. If this option is given the options add-priority-node and seed-node are ignored
--seed-node = Connect to a node to retrieve peer addresses, and disconnect
--hide-my-port = Do not announce yourself as peerlist candidate
--extra-messages-file = Specify file for extra messages to include into coinbase transactions
--start-mining = Specify wallet address to mining for
--mining-threads = Specify mining threads count

Daemon JSON RPC API :
To start Daemon JSON RPC API server you should specify a port on which server binds (additionally to standard daemon's arguments). You can choose any free port. To do that execute the following command from the command line:
parsicoind --rpc-bind-port=18240

If you want Daemon to be accessed from other computer not only yours you should also use a --rpc-bind-ip 0.0.0.0 command. To do that execute the following command from the command line:
parsicoind --rpc-bind-ip=0.0.0.0 --rpc-bind-port=18240

Having done that you're ready to operate with the daemon through the following API URLs (e.g., your IP address is 185.203.116.107):
http://185.203.116.107:18240/json_rpc
http://localhost:18240/json_rpc

Remote Node

It is possible to use wallet without blockchain, in remote mode it will be connected to the remote node. This allows to get fully functional wallet in minutes. Just select remote node in settings and restart wallet if you're using GUI, or run simplewallet from CLI suite with --daemon-address or --daemon-host & --daemon-port flags. It is quite safe, the node can't steal your coins.
Cryptonote coin's wallets can operate through remote daemon without downloading blockchain. It allows to start working quickly when needed. It is quite safe as remote daemon can't steal your coins, running own node is more secure of course. To work through remote daemon in simplewallet you need to specify remote daemon's address with flag for example --daemon-address=node.parsicoin.net:18240, in GUI you can just select remote node in settings or add custom one.
To start own ParsiCoin remote node all is needed is just a machine with static IP and open port. Machine should have enough CPU power to handle load when parsing blockchain for connected wallets, it can be even spare PC at home. On such machine you can run ParsiCoin daemon specifying a wallet address where fees would go,
./parsicoind --restricted-rpc --enable-cors=* --enable-blockchain-indexes --rpc-bind-ip=0.0.0.0 --rpc-bind-port=18240 --fee-address=YOUR_PARS_PUBLIC_ADDRESS
You can check if your node is running opening its IP in browser like this http://node.parsicoin.net:18240/feeaddress

Compile

ParsiCoin is a OpenSource Project, You can Access it's Source Code, it's available on Github.
Check Following Guides to build ParsiCoin and ParsiPay:
https://github.com/parsicoin/parsicoin
https://github.com/parsicoin/parsipay