txSync SDK
HomeBlogProjectsCreate ZK Chains
  • πŸ‘‹Introduction
  • πŸš€Getting Started
    • Installation Guide
    • Quick Start Guide
  • πŸ› οΈSDKs
    • πŸ“¦@txfusion/txsync-sdk
      • πŸš€ Quick start
      • πŸ“ API
        • Paymaster
        • Restrictions
      • πŸ§‘β€πŸ³ Examples
      • 🀝 Contributing
    • πŸ“¦@txfusion/txsync-viem
      • πŸš€ Quick start
      • πŸ“ API
        • Paymaster
        • Extensions
      • πŸ§‘β€πŸ³ Examples
      • 🀝 Contributing
  • πŸ”ŒProduct Integration
    • Portal
    • Bridge
    • Tsuko
    • Visor
    • ZK Chains
    • Playground
Powered by GitBook
On this page
  • Current capabilities
  • Getting started with Playground
  • Three ways to manage gas fees
  • Step-by-step guide on using Playground with Tsuko
  1. Product Integration

Playground

Interactive testing environment for txSync products

PreviousZK Chains

Last updated 6 months ago

Playground was created with a clear goal: to empower users to test, learn, and understand txSync’s products firsthand. Therefore, whether you’re testing your Tsuko paymasters or experimenting with gas fee management, txPlayground empowers you to see txSync products.

Current capabilities

Currently, Playground supports Tsuko β€” a powerful tool for managing gas fees on the Zksync network. You can use Playground to test the Tsukos you've created, exploring different methods to cover gas fees for your users or enable payments in custom ERC20 tokens.

What is a Tsuko? A Tsuko is a paymaster on ZKsync that can cover gas fees for your users or allow them to pay in custom ERC20 tokens. You can create your .

Getting started with Playground

When you enter Playground, you’ll be greeted with a customizable greeting message:

"Welcome to the txTsuko playground, txCitizen!"

This message serves as a simple demonstration of blockchain interactions, allowing you to change it as you please. Since the message is stored on the blockchain, updating it requires a transaction β€” typically involving paying gas fees in ETH. However, Tsuko enables unique ways to manage these fees.

Three ways to manage gas fees

Playground offers three methods to cover gas fees when updating the greeting message:

  1. Paying gas fees yourself: This is the traditional way you handle the gas fees using ETH from your wallet.

  2. Using Sponsored Tsuko: This is Ideal for developers or businesses wanting to provide a seamless experience without requiring users to pay gas fees.

  3. Using ERC20 Tsuko: Pay gas fees with a custom ERC20 token, offering greater flexibility and expanding possibilities for token-based interactions.

Step-by-step guide on using Playground with Tsuko

Changing messages with Sponsored Tsuko

Here’s how to change the greeting message using a Sponsored Tsuko:

  1. Type a new message: Start by entering the new message you want Playground to display.

  2. Select "Sponsored Tsuko" Choose this option to utilize a Tsuko that will cover your gas fees.

  3. Select Your Sponsored Tsuko

    • If you already have a Sponsored Tsuko, select it from the dropdown.

  4. Click β€œChange Message” If your selected Tsuko has insufficient funds, top it up with some ETH.

  5. Confirm the transaction Approve the transaction, and your new message will go live β€” without using any of your ETH for gas fees!

Changing messages with ERC20 Tsuko

Follow these steps to change the greeting message using an ERC20 Tsuko:

  • Type a new message Enter the new message you want Playground to display.

  • Select "ERC20 Tsuko" This option lets you use an ERC20 token to cover gas fees instead of ETH.

Currently, Tsuko supports USDC and STORJ tokens for ERC20 Tsuko type.

  • Select Your ERC20 Tsuko

    • If you already have an ERC20 Tsuko, select it from the dropdown.

  • Click β€œChange Message” Ensure your Tsuko has sufficient ETH for any base fees and that your wallet holds enough of the selected ERC20 token.

  • Confirm the transaction Approve the transaction, and your message will be updated on Playground without the need to spend ETH on gas fees!

If you haven’t created one, visit to set one up.

If you haven’t created one, visit to set it up.

πŸ”Œ
Tsuko
Tsuko
Tsuko