π¦@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
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
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
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