For the complete documentation index, see llms.txt. This page is also available as Markdown.

Gasless Transactions on ZKsync

The Venus app can offer transactions that use a Zyfi Paymaster on ZKsync. Paymaster availability, supported actions, sponsorship percentage, fee token, quota, and quote expiry are dynamic; a displayed option is not a promise that every transaction will be fully sponsored.

Step-by-Step Guide

Step 1: Connect to ZKsync on Venus

  1. Open the Venus app and connect your wallet.

  2. Make sure you are connected to the ZKsync network. If you are not, switch your wallet’s network to ZKsync.

Selection of ZKsync network
Selection of ZKsync network

Step 2: Prepare the Venus action

In this example, the action enables the ZK market as collateral. Enabling collateral changes liquidation risk; review the market and resulting account health before continuing.

  1. Navigate to the ZK market on Venus.

  2. Click on "Collateral" to enable the use of this market as collateral.

Interaction with any feature on ZKsync
Interaction with any feature on ZKsync

Step 3: Review the quote and authorize the transaction

  1. If sponsorship is currently available for the action, the app displays a paymaster quote. Check whether sponsorship is full or partial, which token pays any remainder, the maximum fee, and the quote expiry.

  2. Review the wallet request. Wallets and integration versions can present a transaction or typed authorization differently; confirm the decoded target and action match the Venus action you prepared. Reject an unexpected chain, contract, spender, amount, fee token, value, nonce, or deadline.

  3. Authorize only after those values match. If the quote has expired or sponsorship is unavailable, cancel and use the normal wallet transaction flow with ETH rather than repeatedly signing stale payloads.

Example Zyfi authorization prompt in Rabby
Example Zyfi authorization prompt in Rabby; verify the current decoded request.
Example Zyfi authorization prompt in MetaMask
Example Zyfi authorization prompt in MetaMask; verify the current decoded request.

Viewing the Transaction

Verify the submitted transaction on the ZKsync Explorer. If a paymaster was used, the transaction details identify it; also confirm the called Venus contract, status, token movements, and final fee. The screenshots above are illustrative and may not match the current wallet or app flow.

Last updated