When creating a Nectar instance, Numerous parameters can be provided, or alternatively, environment variables can be used in place of constructor parameters.
Parameters
privateKey (optional)
The private key of user wallet
nectarUrl (optional)
The Nectar API server URL
nectarAPIKey (optional)
Issued API key via Nectar service
Environment Variables
NODE_USER_WALLET_SECRET
The private key of user wallet
If this exists, theprivateKey parameter of the constructor will be ignored.
NODE_NECTAR_URL
The Nectar API server URL
If this exists, the nectarUrl parameter of the constructor will be ignored.
NODE_NECTAR_API_KEY
Issued API key via Nectar service
If this exists, the nectarAPIKey parameter of the constructor will be ignored.