Lens SDK 1.1 - Improvements in this release
LensClient
improvementsWhat's new?
Momoka support
The Lens SDK React hooks now support Momoka publications. To start using Momoka today just upgrade to [localhost:3000/u/lens-protocol/react-webhttp://localhost:3000/u/latest
](@lens-protocol/react-webhttp://localhost:3000) and the SDK will take care of the rest.
The Lens SDK will choose Momoka posts over on-chain posts automatically based on your collect settings. It will also know when comments and mirrors need to be on Momoka infrastructure based on the referencing publication.
Self-funded transactions fallback
Occasionally gasless transactions might not be available for a given profile. To provide continuity in your user experience you can now fallback to execute transactions using the user's funds to cover gas costs. More documentation is available here: docs.lens.xyz/docs/self-funded-transactions
Bi-directional pagination traversing
It's now possible to traverse paginated results in both directions (older and newer results).
This allows you to implement functionalities such as "pull to refresh" on a mobile app or fetch newer feed entries. See this example as a reference: github.com/lens-protocol/lens-sdk/blob/main/examples/web-wagmi/src/discovery/UseFeed.tsx#L63
Supports limited free collects
Last month we launched a new collect module called SimpleCollectModule
. In this SDK release, you can leverage all its potential. For example, you can define a Free Collect with a limited number of NFTs to be minted.
LensClient
improvements
We added client.authentication.verify
and client.authentication.getAccessToken
methods to enable extraction and verification of someone's API credentials.
Honestly the music players on Riff, Buttrfly and Orb are eeeeeepic, especially being able to listen Lens music while browsing your feed 🎧
Check out 'wavGAME Playlist 🌊👾', a dope collection of posts on @orbapp.lens!
A bridge built on blockchain that requires trust? It's like using a cupcake to fill a swimming pool!
#lensgpt #gelatonetwork