Introducing the txSync SDK: Streamline Your Paymaster Integrations Effortlessly

txFusion Team
txFusion
Published in
3 min readJun 26, 2024

GM txCitizens!

We’re thrilled to announce the release of the txSync SDK, a groundbreaking tool for developers ooking to integrate a multiple Paymaster functionalities directly into their projects.

Say hello to unmatched efficiency! 😎

Why txSync SDK?

txSync SDK revolutionizes the way developers use and integrate Paymasters.

Traditionally, setting up Paymasters was a complex task that required navigating multiple platforms and processes. With our Paymaster as a Service, txTsuko, we revolutionized this by enabling anyone to create their own Paymaster in just three clicks, eliminating the need for extensive coding that could take days.

This was a significant leap forward in simplifying the Paymaster creation process.

Now, we are taking it a step further with the txSync SDK. While creating a Paymaster on txTsuko was simplified, integrating it into a platform or website still required custom integration with writing code from scratch, alongside rigorous testing. The txSync SDK streamlines this last mile of integration. With the SDK, incorporating a Paymaster into your application is a matter of just a few lines of code — no additional testing and debugging rounds needed. 🔥

This evolution signifies our commitment to continuously simplifying and improving the developer experience, making it faster and more intuitive than ever before.

Real-World Applications of the txSync SDK

Let’s explore how the txSync SDK can transform your development workflow through these practical examples:

Example 1

In order to customize your Paymaster with Restrictions, we had to manually pass the transaction object, instantiate the new contract and then call the function on the contract.

Now with txSync SDK we can do ALL of that in few easy lines — all the data we need is the address of the paymaster and the user restriction address. We just call the addRestriction method on the paymaster and it’s done, as easy as that!

We can then get all restrictions in the same way: await paymaster.getRestrictions() and we can also remove restrictions. All of that in few simple lines.

This just shows how the txSync SDK transforms complex frontend integrations into simple, efficient operations that enhance the user experience and broaden the accessibility of innovative features. 🔥

Example 2

Another great example was our collaboration with SyncSwap, where we enabled gas-free swaps for specific NFT holders through a Paymaster created on txTsuko.

However, integrating this Paymaster into the SyncSwap platform was not straightforward. It required about 20 lines of code, extensive testing, and continuous monitoring to ensure everything worked seamlessly.

Now, with the txSync SDK, this integration headache is a thing of the past. SyncSwap can implement the Paymaster directly into their platform with just a few lines of code. What used to be a process involving multiple steps and verification is now a streamlined, nearly automated task.

This change not only saves time but also significantly reduces the potential for errors.

What’s Next for the txSync SDK?

The txSync SDK is not just about simplifying existing processes — it’s about unlocking a universe of new possibilities. Stay tuned as we continue to roll out more features that make ecosystem more accessible and efficient than ever before!

We invite developers and enthusiasts to dive deeper into the possibilities our new SDK offers. For a comprehensive understanding and step-by-step guidance on integrating the txSync SDK into your projects, check out our documentation.

And to keep an eye on our updates, make sure you are following us on our X (Twitter) account and Discord!

*This article is also published on txFusion blog.

--

--