Paymaster
The Paymaster class is a utility class that provides methods for interacting with Paymaster contracts on the zkSync network. It supports two types of Paymasters: ERC20Paymaster and SponsoredPaymaster.
getPaymaster
async function getPaymaster(address: Address, walletClient: WalletClient, publicClient: PublicClient): Promise<Paymaster>Paymaster
Constructor
constructor(address: Address, walletClient: WalletClient, publicClient: PublicClient, paymasterType: PaymasterType, chainId: ChainId, token?: Address)getPaymasterCustomData
sendPaymasterTransaction
getBalance
estimateGas
getPaymasterContract
addExtension
getExtensions
removeExtension
Last updated