Usecases

Several use cases are accessible to all ZKsync dApps through Zyfi API and with this new permissionless paymaster.

Address Whitelisting

  • Purpose: To streamline transactions by allowing only pre-approved addresses to initiate transactions that the paymaster will sponsor.

  • Implementation: The list of addresses is maintained on the frontend (client-side). The system can be designed to only sponsor gas for transactions initiated from these whitelisted addresses.

  • Benefit: Eliminates the need for on-chain transactions for address verification, reducing costs and enhancing efficiency.

Contract-Based Sponsorship

  • Purpose: To sponsor transactions related to specific contract interactions, such as token approvals or interactions with newly introduced products.

  • Implementation: The sponsorship is applied to all approval transactions of a particular token or any interaction with specific contract functionalities, managed from the frontend.

  • Benefit: No on-chain transactions are needed to implement changes; updates are made in the signing logic, which simplifies the process and reduces transaction costs.

Exclusive Events

  • Purpose: To offer gas sponsorship during special events organized by the DApp, like anniversaries, token launches, or real-life gatherings.

  • Implementation: Custom business logic can be created on the Dapp side to handle such events, and a call to Zyfi API or (in case of permissionless paymaster managed by Dapp) signer will only sign for those transactions.

  • Benefit: Enhances user engagement by reducing the cost barrier during special promotions or events, encouraging participation without worrying about gas fees.

NFT Sponsorship

  • Purpose: To reward NFT holders by allowing them to perform transactions without paying gas fees.

  • Implementation: Holders of a particular NFT collection can transact gaslessly, facilitated by the Zyfi API or permissionless paymaster.

  • Benefit: Encourages ownership and active participation within the NFT community by reducing the cost of transactions, which can be particularly appealing in permissionless and public good contexts.

Last updated

#68: Permissionless Paymaster

Change request updated