/lens-gated-publications

Example application implementing gated Lens posts, encryption, and decryption

Primary LanguageJavaScript

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

  1. Clone the project:
git clone git@github.com:dabit3/lens-token-gating.git
  1. Install the dependencies
npm install

# or yarn, pnpm, etc...
  1. Configure the environment variables.

    Update .example.env.local to .env.local and configure the NEXT_PUBLIC_PROJECT_ID and NEXT_PUBLIC_PROJECT_SECRET with your Infura project information.

    Also optionally configure the NEXT_PUBLIC_ENVIRONMENT with the network you'd like to connect to.

  2. Run the app

npm run dev