NavCoin Dev Guide

  • Docs
  • NavCoin.org
  • Community
  • GitHub
Star

What's on this Page

    • All Configuration Settings
    • Configuration Lookup Order
    • Example Configuration
    • Default configuration file location
      • Default locations
FUNDAMENTALS

Configure NavCoin

How to configure NavCoin Core with a configuration file.

NavCoin uses a file called navcoin.conf to store it’s configuration settings. This located in the .navcoin4 appdata folder (see below for a more specific location) and is user editable.

The user can choose to override the entire default configuration file by specifying an alternative, or overwrite individual configuration options by specifying them using the command line at launch.

Examples:

navcoind -conf="~/Documents/altConfig.conf" # use an alternative config
navcoind -rpcport=33333 -rpcuser=alternativeuser -rpcpassword=example # override specific options

Alternate config files can be specified as a launch option using the -conf=/path/to/file.conf switch.

All Configuration Settings

A full list of options that can be specified in a config file can be found on the launch options page, however the - is unneeded when specifying options in a config.

-rpcuser=user # This is INCORRECT, the hyphen is not needed
rpcuser=user # This is CORRECT

Options that normally have no argument (e.g. -testnet, -regtest, etc) are activated by setting a 1 (enable) or 0 (disable) to enable or disable them.

staking=0
testnet=1

Configuration Lookup Order

The configuation file is read top-to-bottom and any setting will be overwritten if there is another instance of the same setting below it.

rpcport=50000
rpcuser=user
rpcport=60000 # Overrides the rpcport setting above

Example Configuration

The following is a typical example of a configuration file:

rpcuser=user
rpcpassword=mysecretpassword
testnet=1
rpcport=60000
printtoconsole=1

Default configuration file location

By default the config file will not exist and you will need to create one but, the default location the wallet will look for the config file is in the NavCoin data folder. You can specify an alternative datafolder or confuration file location when launching the wallet from the command line.

Default locations

Windows: C:\Users\(YOUR USERNAME)\AppData\Roaming\NavCoin4\

Linux: ~/.navcoin4/

MacOS: ~/Library/Application Support/NavCoin4/

NavPi: /home/stakebox/.navcoin4/

  • About Blockchain
    • About Blockchain
    • Blockchain Overview
    • Block Height And Forking
    • Transaction Data
  • Getting Started
    • Get Started Overview
    • Quick Start
    • Install NavCoin
  • Launch Options
  • Configure NavCoin
  • NavCoin Networks
  • Community Fund
“Configure NavCoin” was last updated: November 1, 2018: deleted a load files. Switched some to draft mode (so they are hidden) updated rpc command docs and config file docs (7a77f384)
Improve this page
Maintained by the NavCoin Community
  • File an Issue

 
  • Docs
  • NavCoin.org
  • Community
  • GitHub
  • About Blockchain
  • Getting Started
  • Launch Options
  • Configure NavCoin
  • NavCoin Networks
  • Community Fund