📦@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
getPaymasterRetrieves 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
sendPaymasterTransactionPopulates 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
createExtensionCreates an extension that can be added to the Paymaster, providing additional customization options and expanding the Paymaster’s capabilities.
Last updated