This is an example project showing how to implement token gated posts on Lens, and also showing how to decrypt token gated posts on Lens.
To run this project follow these steps
- Clone the project:
git clone git@github.com:dabit3/lens-token-gating.git- Install the dependencies
npm install
# or yarn, pnpm, etc...-
Configure the environment variables.
Update
.example.env.localto.env.localand configure theNEXT_PUBLIC_PROJECT_IDandNEXT_PUBLIC_PROJECT_SECRETwith your Infura project information.Also optionally configure the
NEXT_PUBLIC_ENVIRONMENTwith the network you'd like to connect to. -
Run the app
npm run dev