Actions Illustration

Actions

Actions are modular components that offer a flexible and granular approach to interactions within the Lens protocol. They are categorized into global, account-based, and post-based types, each serving different scopes of functionality. Global actions affect multiple users or posts, account-based actions target specific profiles, and post-based actions focus on individual posts.

This modular design allows developers to configure actions based on context. For instance, collectibility can be managed through a CollectAction contract, where authors set parameters like collection type and price. Actions can be batched into a single transaction using multicall, improving efficiency and reducing costs. Since accounts in the Lens protocol are fully programmable smart accounts (thanks to native account abstraction), they can initiate transactions and include arbitrary logic, such as batching multiple actions. This system enhances the user experience by enabling complex interactions in a streamlined and customizable manner.