Skip to content

Configuration Variables

Thomas edited this page May 23, 2018 · 14 revisions

LOG_LEVEL

  • Default: "info"

The LOG_LEVEL environment variable determines both what is printed on the screen and what is written to the logfile, located at $ROOT/log.jsonl.

The available options are:

  • "debug"
  • "info"
  • "warn"
  • "error"
  • "panic"

ROOT

  • Default:"~/.chainlink"

This is the directory where the db.bolt and log.jsonl files and the keys directory reside. The db.bolt file is the database that the Chainlink node uses to keep track of JobSpecs, JobRuns, their status according to each interaction, and BridgeTypes (for external adapters). log.jsonl is the log as written by the Chainlink node, depending on the LOG_LEVEL specified by the environment variable's value. The keys directory is the keystore and contains the password-encrypted private keys stored as JSON files.

CHAINLINK_PORT

  • Default:"6688"

Port used for the REST API.

USERNAME

  • Default:"chainlink"

The USERNAME environment variable, and subsequent PASSWORD variable are used for authentication to interact with the Chainlink node itself.

For example, the command:

$ curl -u chainlink:twochains http://localhost:6688/v2/specs

Is the equivalent as:

$ export USERNAME=chainlink
$ export PASSWORD=twochains
$ chainlink j

PASSWORD

  • Default:"twochains"

Similar to USERNAME above, used for authentication to interact with the Chainlink node itself.

ETH_URL

  • Default:"ws://localhost:8546"

This is the websocket address of the Ethereum client that the Chainlink node will connect to. All interaction with the Ethereum blockchain will occur through this connection.

ETH_CHAIN_ID

  • Default:"0"

The Chain ID being 0 allows for the node to work on any available network.

CLIENT_NODE_URL

This is the URL that you will use to interact with the node itself. For example, tasks like adding JobSpecs, External Adapters, and starting jobs with a web initiator will use this URL.

TX_MIN_CONFIRMATIONS

  • Default:"12"

The number of block confirmations to wait after a task run has been ran to regard it as "completed" in the node.

TASK_MIN_CONFIRMATIONS

  • Default:"0"

The number of block confirmations to wait before beginning a task run.

ETH_GAS_BUMP_THRESHOLD

  • Default:"12"

The number of blocks to wait if the transaction has still not been confirmed before resubmitting the transaction.

ETH_GAS_BUMP_WEI

  • Default:"5000000000"

The amount of wei to increase for the resubmitted transaction.

ETH_GAS_PRICE_DEFAULT

  • Default:"20000000000"

The default gas price to use when submitting transactions to the blockchain.

LINK_CONTRACT_ADDRESS

  • Default:"0x514910771AF9Ca656af840dff83E8264EcF986CA"

The address of the LINK token contract. Used for displaying the node account's LINK balance.

MINIMUM_CONTRACT_PAYMENT

  • Default:"1000000000000000000"

For jobs that require payment, this is the minimum payment amount in order for the node to accept and process the job. Since there are no decimals on the EVM, the value is represented like wei. This makes the default value 1 LINK.