Token-gating architecture
- 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
Related pages
Access Control
JWT and webhook-based access control without Lit Protocol.
IPFS Video Integration
Store video on IPFS and deliver via Livepeer.