Skip to main content

Blockservice Config

All configuration is done by an .env file which you need to create in the root of the application folder. Some variables which are not be set will use default values.

Lamden configuration items

ItemDescriptiondefault
NETWORKWhich Lamden network to synctestnet
MASTERNODE_URLA URL of a lamden masternodehttps://testnet-master-1.lamden.io

Mongo DB configuration items

ItemDescriptiondefault
DBUSERdatabase usernull
DBPWDdatabase passwordnull
AUTHSOURCEauth source if using a user and passwordadmin
DBURLdatabase url127.0.0.1
DBPORTdatabase port27017
DBNAMEthe name of the database${NETWORK}-blockservice. Example testnet-blockservice

Runtime options

ItemDescriptiondefault
DEBUG_ONoutputs some logs while grabbing blocksfalse

Server options

ItemDescriptiondefault
BLOCKSERVICE_PORTThe port used for the webserver and websockets3535
BLOCKSERVICE_HOSTService bind hostlocalhost

Msic options

ItemDescriptiondefault
APIDOC_PORTPort for api document8999
SCRIPT_SOCKET_CONNEstimation script socket server connection.http://localhost:3232
LOG_LEVELLog Levelinfo

Log Level Details

  • info - Displays all messages from all loggers.
  • timer - Displays messages only from the time, timeEnd, debug, warn, error & fatal loggers.
  • debug - Displays messages only from the debug, warn, error & fatal loggers.
  • warn - Displays messages only from the warn, error & fatal loggers.
  • error - Displays messages only from the error & fatal loggers.