This project is an example of a command-line interface (CLI) that uses the functions-toolkit to interact with Chainlink Functions.
To set up the project, follow these steps:
-
Install the required dependencies.
npm install
-
We use @chainlink/env-enc package to encrypt environment variables at rest. Set the password to encrypt and decrypt the environment varilable file
.env.enc:npx env-enc set-pw
-
Set the following variables:
- PRIVATE_KEY
- PROPMIX_API
- POLYGON_AMOY_RPC_URL
- GITHUB_API_TOKEN
-
Run the code:
node examples/use-secrets-gist/request.js