Awesome
Token Gating app on Lens
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.
Project setup
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.local
to.env.local
and configure theNEXT_PUBLIC_PROJECT_ID
andNEXT_PUBLIC_PROJECT_SECRET
with your Infura project information.Also optionally configure the
NEXT_PUBLIC_ENVIRONMENT
with the network you'd like to connect to. -
Run the app
npm run dev