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
  • Community Multisig

Integrations

  • Embeds and custom links
  • Lens Widgets
  • Encrypted DMs

React Hooks

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

Lens API

  • Introduction
  • API links
  • Public BigQuery
  • Querying from an Application
    • Apollo client
    • URQL
    • LensClient SDK
  • Authentication
    • Login
    • Refresh JWT
    • Verify JWT
  • Gasless
    • Broadcast transaction
    • Dispatcher
    • Proxy action
  • 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
  • Modules
    • Enabled modules currencies
    • Enabled modules
    • Approved allowance of modules
    • Module currency approval data
  • NFTs
    • Get Users NFTs
    • NFT ownership challenge
    • NFT Galleries
  • 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
    • Collect
    • 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
  • Reactions
    • Add reaction
    • Remove reaction
    • Get reaction
    • Who reacted publication
  • Reporting
    • Report publication
  • Revenue
    • Profile publication revenue
    • Profile follow revenue
    • Publication revenue
  • Search
    • Search profiles or publications
  • Feed
    • 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?

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
  • Publishing a Module

Specification

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

Client SDK

  • All modules and methods
  • TypeScript Types

Follow

Suggest Edits

Follow resolver contains anything relating with the profiles follow actions. Every time someone follows it mints an NFT, you can read more in-depth about how follows work here.

The follow resolver have these queries:

  • Create follow typed data
  • Create unfollow typed data
  • Approve follow
  • Pending approval follows
  • Does follow
  • Following
  • Followers

Updated about 1 year ago