our-blog
our-blog
05
05

Hey Web3 trailblazers 👋

Get ready to dive into the thrilling world of innovations, because txFusion is about to drop a game-changer!

We are gearing up for the launch of a new addition to the txSync platform, that is set to revolutionize the way you interact with paymasters on the mind-blowing zkSync network.

In an upcoming four-part blog series, we are going to unveil the exciting journey behind our latest creation. We will share why we embarked on this adventure, unravel what challenges it solves, introduce you to the groundbreaking concepts it brings, and explain how you can harness its power to the fullest!

We are going to start by cracking code on what makes paymaster on zkSync tick.

So what is a paymaster at all?

Before we dive deep into the world of paymasters, let’s take a step back and examine the foundation upon which all our projects at txSync are built: zkSync.

Why zkSync, you may wonder? Let’s look at the two most compelling advantages:

  1. 1. Low gas fees (that will become even lower pretty soon!)
  2. 2. Native Account Abstraction / Paymaster support

When it comes to the first point, let’s turn our attention to some recent and highly intriguing developments made by the Matter Labs team.

Picture this: gas fees reduced to just a few cents for almost any type of transaction on zkSync Era.

It's not a dream; it's the future that's rapidly approaching!

Matter Labs has been making quite some waves with their announcements, and the best part is that even more exciting changes are on the horizon. Brace yourselves for a revolution that will make transactions smoother, faster, and incredibly cost-effective!

Let’s shift our focus to the second point - which is a real game-changer: Native AA + paymaster support.

Native Account Abstraction (AA) brings a lot of benefits to the users and developers on zkSync network, and there are many great blog posts and presentation that talk about this. And each time AA is mentioned, you can always hear something called Paymaster. But what exactly is that?

At its core, a Paymaster is not run-of-the-mill smart contract; it’s rather a smart contract with a distinct set of attributs. Think of it as a versatile performer on the blockchain stage. You have power to write it, deploy it, and it can even claim its very own address on the zkSync network, just like any other contract.

Two key factors to set it apart:

  1. 1. zkSync provides a set of functions and rules, referred to as the Paymaster interface guiding you on how to craft this smart contract.
  2. 2. If you follow these rules to the letter, zkSync extends its full-throttle support at the protocol level. It means that it enables the possibility for someone else to pay gas fees to our transactions on zkSync.

While this is technically achievable on the Ethereum mainnet as well, zkSync takes it a step further by supporting this feature natively! This means that every single user account and smart contract, right from day one, can hop on board and enjoy the perks without requiring any changes.

Now that we have demystified essence of Paymasters, let’s explore different types of the paymasters.

Paymaster types and Paymaster benefits

* Note: we are not going too technical in this blog post, so some of the things mentioned are a bit of oversimplification. If you want to dive deep into the tech part of it, please visit excellent zkSync docs.

At txSync, we categorize Paymasters into two fundamental types:

- Sponsored paymaster: This type allows you to create and deploy your paymaster, then seamlessly integrate it with any other DApp. The magic happens when developers use this to build "gasless" payments right into their DApp. Users who engage with the app won't have to spend a single cent on transaction fees! Imagine the possibilities!

- ERC20 Paymaster: Now, this is where things get interesting. You know how every time you make a transaction from your wallet, you need some ETH in it to cover gas fees? Well, not anymore, thanks to the ERC20 Paymaster! Developers can infuse their apps with the power to let users pay fees using any ERC20 token they support. It's a game-changer, and you can witness its real-world application on our txPortal and txBridge.

With “Choose your fee” token option, and selecting USDC, you can pay gas fees for any transfers and withdrawals on our platform, using just USDC from your wallet!

This is a monumental shift for many users who no longer need to visit exchanges or swaps to convert their tokens into ETH for fees. How many wallets have so little ETH that it doesn’t pay off to actually move it? Well, it’s not lost anymore if you use Paymaster!

It’s a true game-changer! You can learn more about this awesome feature in our blog post, where we explained everything in more details.

In just three weeks, txSync paymaster contract has, in the time of writing, processed over 1500 transactions, showing real-world utility!

BUT wait, there’s more!

These two Paymasters are just the tip of the iceberg! You have probably heard whisperers of connecting your NFT to a Paymaster to eliminate gas fee or maybe hosting “gassless Friday” as part of your product offering. You are absolutely right: those are all possible and we are fully aware of it.

Keep an eye out for our product announcement where we'll dive into these innovations 😉

Now, you may wonder, if we have those revolutionary paymaster functionalities available, why aren’t there more DApps on zkSync that use them? 🤔 The part two of this blog series will answer exactly that question. Plus, we'll introduce a solution that empowers anyone to build, customize, and monitor their Paymaster with just a few clicks!

Stay tuned for txTsuko-Paymaster as a Service!

Additional resources about Account Abstraction and Paymaster👇

*This article is also published on txFusion Medium channel.

Listen us on spotify