Playground
Interactive testing environment for txSync products
Last updated
Interactive testing environment for txSync products
Last updated
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.
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 Tsuko.
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.
Playground offers three methods to cover gas fees when updating the greeting message:
Paying gas fees yourself: This is the traditional way you handle the gas fees using ETH from your wallet.
Using Sponsored Tsuko: This is Ideal for developers or businesses wanting to provide a seamless experience without requiring users to pay gas fees.
Using ERC20 Tsuko: Pay gas fees with a custom ERC20 token, offering greater flexibility and expanding possibilities for token-based interactions.
Here’s how to change the greeting message using a Sponsored Tsuko:
Type a new message: Start by entering the new message you want Playground to display.
Select "Sponsored Tsuko" Choose this option to utilize a Tsuko that will cover your gas fees.
Select Your Sponsored Tsuko
If you haven’t created one, visit Tsuko to set one up.
If you already have a Sponsored Tsuko, select it from the dropdown.
Click “Change Message” If your selected Tsuko has insufficient funds, top it up with some ETH.
Confirm the transaction Approve the transaction, and your new message will go live — without using any of your ETH for gas fees!
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 haven’t created one, visit Tsuko to set it up.
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!