Using this API call we can check if an accountAddress is whitelisted for a specific paymaster address.
import'dotenv/config';import { Paymaster } from'@kanalabs/mirai';(async () => {// Define the accountAddress, sponsorAddress, chainId and apiKeyconstaccountAddress='0x2DA84874572d7F0b80c8375BE5dE438Ff2247805';constsponsorAddress='0x7305B1a9bDD8247DeB288BC2d271626159cB8c4c';constchainId=80001;constapiKey=process.env.PAYMASTER_API_KEY||'';// initializating Paymaster service using the apiKey...constpaymasterService=newPaymaster(apiKey);// Check a whitelist paymaster using the specified accountAddress, sponsorAddress and chainIdconstresponse=awaitpaymasterService.checkWhitelist(accountAddress, sponsorAddress, chainId);// Log the check whitelist paymaster responseconsole.log('response', response);})()