Paymaster

The Paymaster library SDK allows developers to handle actions such as depositing fee into Paymaster and checking the balance left for a targeted wallet.

Function List

  • To deposit the fee to Paymaster

    • Input the wallet address and the amount of fee to deposit

MethodParameter TypeError Message
depositToPaymaster(wallet: Address, amount: BigNumber)
Address: string;
BigNumber: bigNumber;
'Error depositing to paymaster'
  • To get the wallet Paymaster to check the balance

    • Input the specific wallet address that you want to check for the balance

MethodParameter Type
getWalletPaymasterBalance(wallet: Address)
Address: string;
'Error getting wallet paymaster balance'

Last updated