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
  1. SDKs

@txfusion/txsync-sdk

SDK for ZKsync paymaster transactions with ethers

PreviousSDKsNext🚀 Quick start

Last updated 6 months ago

This SDK is designed to simplify interactions with ZKsync, using ethers.js, providing powerful tools for managing transaction fees, customizing transactions, and utilizing paymaster functionalities on the ZKsync network.

Key Paymaster methods

getPaymaster

  • Retrieves the Paymaster you created, enabling you to call various methods.

  • Use this function to access a specific Paymaster instance, a starting point for managing Paymaster-based transactions.

sendPaymasterTransaction

  • A method that populates and sends a transaction using the Paymaster and provided parameters.

  • This method is useful when creating and immediately sending a transaction, handling the population, and executing in one step.

populatePaymasterTransaction

  • A method that returns a populated TransactionRequest object.

  • This allows you to populate a transaction with all necessary details, giving you the flexibility to perform additional checks or operations on the transaction data before sending it.

The provides everything you need to set up and use ethers.js with the txsync-sdk for seamless interaction with ZKsync.

🛠️
📦
Quickstart Guide