0Gkitdocs↗ HomePlaygroundGitHub

CONFIG_MISSING_ENV

Missing required environment variable

What happened

A required environment variable (e.g. ZEROG_PRIVATE_KEY, ZEROG_BROKER_KEY) was not set when the primitive was constructed.

How to fix

Set the variable in your shell or .env file before invoking the CLI / starting your app. For local dev, copy .env.example to .env and fill it in.

Example

// .env
ZEROG_PRIVATE_KEY=0x...
ZEROG_NETWORK=galileo

Reference

  • Namespace: CONFIG
  • Help URL: https://0gkit.com/errors/CONFIG_MISSING_ENV
  • See also: all error codes