Jump to Content
Lens Protocol
Guides
Lens Protocol

Documentation

  • What is Lens? 🌿
  • Overview
  • Developer Quickstart
  • Authentication Quickstart
  • Deployed Contract Addresses
  • Lensverse
  • Developers FAQ
  • Community FAQ

Major Concepts

  • Profile
  • Publication
  • Comment
  • Mirror
  • Collect
  • Follow
  • Built-In Governance
  • Community Multisig

Integrations

  • Integrating Lens
  • Encrypted DMs

Lens API

  • Introduction
  • API links
  • Querying from an Application
    • Apollo client
    • URQL
  • Authentication
    • Login
    • Refresh JWT
    • Verify JWT
  • Broadcast transaction
  • Dispatcher
  • Explore
    • Explore publications
    • Explore profiles
  • Follow
    • follow
    • unfollow
    • Set follow module
    • Set follow NFT URI
    • Pending approval follows
    • Does follow
    • Following
    • Followers
    • Follower NFT owned token ids
    • Is followed by me
    • Is following
  • Health
    • Ping
  • Indexer
    • Has transaction been indexed
  • Module
    • Collect
    • Enabled modules currencies
    • Enabled modules
    • Approved allowance of modules
    • Module currency approval data
  • NFTs
    • Get Users NFTs
    • NFT ownership challenge
  • Notification
    • Users notifications
  • Profile
    • Create profile
    • Get default profile
    • Get profiles
    • Get profile
    • App profile stats total
    • Recommended profiles
    • Set profile metadata
    • Set profile image
    • Delete profile
    • Set default profile
    • Mutual profile follows
    • On chain identity
    • Profile interests
  • Protocol stats
    • Global protocol stats
  • Publication
    • Metadata standards
    • Validate metadata
    • Post
    • Comment
    • Mirror
    • Gated publications
    • Media uploads
    • Get publications
    • Get publication
    • App comment total
    • Has mirrored publication
    • Has collected publication
    • Can comment publication
    • Can mirror publication
    • Hide publication
    • Who collected publication
    • For sale publications
    • Metadata filters - publication
    • Publication metadata status
  • Nonce management typed data
  • Proxy action (gasless)
  • Reactions
    • Add reaction
    • Remove reaction
    • Get reaction
    • Who reacted publication
  • Reporting
    • Report publication
  • Revenue
    • Profile publications revenue
    • Profile follow revenue
    • Publication revenue
  • Search
    • Search profiles or publications
  • Feed
    • User timeline (Depreciated)
    • Profile feed
  • E2EE DMs
  • General information
    • Why our own indexer?
    • How do we index?
    • How do we cache?
    • What database do we use?
    • What is the backend code ?
    • Why GraphQL?

React Hooks

  • Introduction
  • Getting Started
  • Wallet Authentication
    • useWalletLogin
    • useWalletLogout
  • Profile
    • useProfile
    • useActiveProfile
    • useCreateProfile
    • useProfileFollowers
    • useProfileFollowing
    • useMutualFollowers
    • useProfilesToFollow
    • useFollow
    • useUnfollow
    • useUpdateProfileDetails
    • useUpdateProfileImage
    • useUpdateDispatcherConfig
  • Publication
    • usePublication
    • usePublications
    • useComments
    • useCreatePost
    • useCreateComment
    • useCreateMirror
    • useCollectedPublications
    • useWhoCollectedPublication
    • useReaction
    • useWhoReacted
    • useReportPublication
    • useHidePublication
  • Discovery
    • useFeed
    • useExploreProfiles
    • useExplorePublications
    • useSearchProfiles
    • useSearchPublications
  • Misc
    • useCurrencies
    • useNotifications
    • useUnreadNotificationCount
  • Revenue
    • usePublicationRevenue
    • useProfileFollowRevenue
    • useProfilePublicationRevenue
  • Advanced
    • Error handling

Deploying the Lens smart contracts

  • Primer
  • Quick Setup
  • Deploying the Protocol
  • Unpausing the Protocol
  • Creating a Profile
  • Publishing Posts
  • Following Profiles
  • Collecting Publications

Creating a Module

  • Introduction to Modules
  • Creating a Module
  • Testing a Module

Specification

  • LensHub.sol
    • State Changing Functions
    • View Functions
  • Follow Modules
  • Reference Modules
  • Collect Modules
  • Events

Module

Suggest Edits

Modules are an integral part of the Lens Protocol: they allow profile owners to include unique, custom functionality on follow, collect and reference. You can read more about modules here and what they do.

The module resolver have these queries:

  • Create collected typed data
  • Enabled modules currencies
  • Enabled modules
  • Approved allowance of modules
  • Generate module currency approval data

Updated 11 months ago