📦@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
getPaymaster
Retrieves 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
sendPaymasterTransaction
A 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
populatePaymasterTransaction
A method that returns a populated
TransactionRequest
object.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.
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