Skip to main content
Token-gated video combines Lit Protocol’s decentralised access control with Livepeer’s JWT playback policy. A viewer proves NFT ownership to Lit; Lit returns a signed JWT; the Livepeer Player presents the JWT to the CDN edge for access. What you will build: A React application where only holders of a specific NFT contract can play a Livepeer-hosted video.

Token-gating architecture

Three systems interact:
  • Lit Protocol — verifies on-chain conditions (NFT ownership) and issues access control conditions (ACCs) that gate a symmetric encryption key or a signed payload
  • Livepeer-compatible Gateway — creates a JWT-protected asset and provides a signing key
  • Playback Gateway or CDN — validates the JWT on every playback request at the edge

Prerequisites

  • Node.js 18 or later
  • A deployed NFT contract (ERC-721) on Ethereum mainnet or any supported chain
  • A Gateway provider API key or self-hosted Gateway with JWT playback access control enabled
  • Familiarity with React and ethers.js or wagmi

Build the gate

Extending the gate

The access control conditions accept any Lit-supported chain and condition type:

AI agent prompt

Access Control

JWT and webhook-based access control without Lit Protocol.

IPFS Video Integration

Store video on IPFS and deliver via Livepeer.
Last modified on May 31, 2026