> For the complete documentation index, see [llms.txt](https://docs.kanalabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kanalabs.io/smart-wallet-sdk/mirai-sdk-the-evm-smart-wallet-and-paymaster/paymaster/check-whitelist.md).

# Check Whitelist

```typescript
import 'dotenv/config';
import { Paymaster } from '@kanalabs/mirai';

(async () => {
   
   // Define the accountAddress, sponsorAddress, chainId and apiKey
   const accountAddress = '0x2DA84874572d7F0b80c8375BE5dE438Ff2247805';
   const sponsorAddress = '0x7305B1a9bDD8247DeB288BC2d271626159cB8c4c';
   const chainId = 80001;
   const apiKey = process.env.PAYMASTER_API_KEY || '';

   // initializating Paymaster service using the apiKey...
   const paymasterService = new Paymaster(apiKey);

  // Check a whitelist paymaster using the specified accountAddress, sponsorAddress and chainId
   const response = await paymasterService.checkWhitelist(accountAddress, sponsorAddress, chainId);

   // Log the check whitelist paymaster response
   console.log('response', response);
})()
```
