πŸ“¦@txfusion/txsync-viem

SDK for ZKsync paymaster transactions with Viem

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 Quickstart Guide provides everything you need to set up and use ethers.js with the txsync-sdk for seamless interaction with ZKsync.

Last updated