Constants and Defaults

The following constants and defaults are taken from Dash Core's chainparams.cpp source code file.

NetworkDefault PortMagic ValueStart String
Mainnet99990xBD6B0CBF0xBF0C6BBD
Testnet199990xFFCAE2CE0xCEE2CAFF
Regtest198990xDCB7C1FC0xFCC1B7DC
DevnetUser-defined (default 19799)0xCEFFCAE20xE2CAFFCE

Note: the testnet start string and nBits above are for testnet3.

Command line parameters can change what port a node listens on (see -help). Start strings are hardcoded constants that appear at the start of all messages sent on the Dash network; they may also appear in data files such as Dash Core's block database. The Magic Value and nBits displayed above are in big-endian order; they're sent over the network in little-endian order. The Start String is simply the endian reversed Magic Value.

Dash Core's chainparams.cpp also includes other constants useful to programs, such as the hash of the genesis block blocks for the different networks.


What’s Next
Did this page help you?