import 'dotenv/config';
import { Paymaster } from '@kanalabs/mirai';
(async () => {
// Define the accountAddress, chainId and apiKey
const accountAddress = '0xf141413684395e0174f14ab8fe2414106f79f2f9';
const chainId = 80001;
const apiKey = process.env.PAYMASTER_API_KEY || ''
// initializating Paymaster service using the apiKey...
const paymasterService = new Paymaster(apiKey);
// remove a whitelist using the specified accountAddress and chainId
const response = await paymasterService.removeWhitelist(accountAddress, chainId);
// Log the remove whitelist response
console.log('response', response);
})()