📦@txfusion/txsync-sdk
SDK for ZKsync paymaster transactions with ethers
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
getPaymasterRetrieves 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
sendPaymasterTransactionA 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
populatePaymasterTransactionA method that returns a populated
TransactionRequestobject.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.
Last updated