For ERC20 token paymaster usage we currently use Pimlico’s paymaster.

This API call checks the paymaster is deployed and returns the address if so.

The user can get the address and use it for approval of tokens if they wish to use ERC20 mode of sponsorship.

	const entryPointAddress = ('0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789');
	const context = {token: 'USDC'};
	const api_key = '';
	const chainId = 80001;
	const returnedValue = await fetch('', {
		method: 'POST',
		headers: {
			'Accept': 'application/json',
			'Content-Type': 'application/json',
		body: JSON.stringify({ "params": [addresses, chainId, api_key] })
		.then((res) => {
			return res.json()
		}).catch((err) => {
			// throw new Error(JSON.stringify(err.response))
	console.log('Value returned: ', returnedValue);

You should see an output like this if a paymaster is available for this token:

Value returned:  { message: '0x32aCDFeA07a614E52403d2c1feB747aa8079A353' }