Sponsorships

This guide explains how to use Sponsorships on the Lens Network.


Lens Network allows apps to offer a free user experience to their end-users through Sponsorships. Lens Sponsorships use ZKsync Paymaster technology to cover transaction fees on behalf of the end user. This enables developers to provide a fully configurable gasless experience for their users.

During the Developer Preview period, all transactions are sponsored on Testnet by a Global Sponsorship contract. More information on how to setup you own Sponsorship will be provided in due course.

Features

Rate Limiting

Sponsorships allow you to scale your app while protecting it from abuse at the same time. Sponsorships can be configured with app-wide as well as per-user rate limits with configurable reset windows. This gives the developer full visibility and control over the usage of their app.

To enable certain use-cases such as trusted/VIP users, the rate-limiting feature can be optionally bypassed for given addresses, by adding them to an exclusion list.

Security

To ensure that sponsored transactions are only invoked by the intended users, the Sponsorship contract uses a list of authorized signers. These signers are one or more addresses, who will need to supply their signature to every transaction sent to the Sponsorship contract, indicating that the transaction originates from their app. At least one authorized signer is required at all times.

You can setup the Lens API to be one of the authorized signers, so that users that enabled Signless Experience can use funds from your app Sponsorship without the need to sign transactions.

Administration

The Sponsorship contract support 2 roles: Owner and Administrators.

Administrators can:

  • Add and remove authorized signers

  • Add and remove addresses to the rate limit exclusion list

  • Update the rate limits

  • Pause and unpause the Sponsorship

The Owner can do everything the administrators can do, plus:

  • Transfer ownership

  • Update the list of administrators

  • Withdraw the funds from the Sponsorship