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-viem

SDK for ZKsync paymaster transactions with Viem

Previous🀝 ContributingNextπŸš€ Quick start

Last updated 6 months ago

This SDK is designed to streamline the integration of txSync functionalities with Viem for seamless interactions on the ZKsync network. It abstracts key operations, providing robust functionality for managing transaction fees, customizing transactions, and leveraging paymaster capabilities within your project.

Key Paymaster Methods

getPaymaster

Retrieves the Paymaster instance you’ve created, allowing you to call various methods. This function provides access to a specific Paymaster instance, acting as the foundation for managing Paymaster-based transactions.

sendPaymasterTransaction

Populates and sends a transaction using the Paymaster and the specified parameters. This method is especially useful when creating and executing a transaction in a single step, managing population and execution seamlessly.

createExtension

Creates an extension that can be added to the Paymaster, providing additional customization options and expanding the Paymaster’s capabilities.

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

πŸ› οΈ
πŸ“¦
Quickstart Guide