Choose a paymaster kit 2026 provider

Selecting the right paymaster kit 2026 provider requires matching your dApp’s tokenomics to the verification method the paymaster supports. Not all kits handle ERC-20 gas payments or signature verification equally well. You need a provider that aligns with your smart account infrastructure and user experience goals.

Compare the three main models side-by-side to see which fits your integration path.

ModelGas SponsorshipERC-20 SupportVerification Method
ERC-4337 StandardFullLimitedOn-chain signature
ERC-20 PaymasterPartialFull (e.g., USDC)Token balance check
Hybrid PaymasterConditionalFullSignature + balance

The ERC-4337 standard paymaster offers full gas sponsorship, paying for all user operations regardless of token holdings. It relies on on-chain signature verification, which is simple but requires your backend to sign payloads. This model suits apps that want to subsidize all gas costs for user acquisition.

ERC-20 paymasters let users pay gas in tokens like USDC. This approach reduces your operational costs but requires users to hold the specific token. MetaMask Smart Accounts support this via their ERC-20 paymaster tutorial, making it a viable path for wallets that want to enable token-based gas payments. Refer to MetaMask’s ERC-20 paymaster documentation for implementation details.

Hybrid paymasters combine both approaches. They sponsor gas for new users or those with low balances while requiring token payments for active users. This model balances cost efficiency with user flexibility, though it requires more complex smart contract logic to switch between verification methods dynamically.

Install SDK dependencies and initialize

To enable gasless transactions, you first need to install the Paymaster Kit 2026 SDK and initialize the smart account instance. This process connects your application to the paymaster infrastructure, allowing it to sponsor UserOperations on behalf of your users.

Install the SDK

Begin by adding the necessary npm packages to your project. The SDK handles the complexity of interacting with the paymaster contract and formatting UserOperations correctly. Run the following command in your project root:

Shell
npm install @paymasterkit/sdk @account/abstract

Once installed, import the core modules in your entry file. You will need to configure the provider and the signer to ensure the SDK can read the correct chain state and sign transactions.

Initialize the Smart Account

Next, initialize the smart account instance. This object represents the user’s wallet and is responsible for building and sending UserOperations. You must pass your paymaster API key and the target chain ID during initialization.

JavaScript
import { PaymasterKit } from '@paymasterkit/sdk';

const paymaster = new PaymasterKit({
  apiKey: 'your-api-key',
  chainId: 1, // Ethereum Mainnet
});

const smartAccount = await paymaster.initSmartAccount({
  signer: walletSigner,
});

This setup ensures that every transaction sent through smartAccount can be sponsored by the paymaster. Verify the connection by checking the console for a successful initialization log before moving to configuration.

Configure gas sponsorship logic

The UserOp builder is the component that assembles the user operation before it hits the mempool. By default, it attaches the signer’s wallet to cover gas costs. To enable gasless transactions, you must reconfigure the builder to point to your paymaster contract instead.

This configuration tells the bundler that a third party—the paymaster—will settle the transaction fee. Without this link, the transaction will revert because the user’s wallet lacks the native ETH required for execution.

paymaster kit
1
Install SDK dependencies

Before configuring the logic, ensure the Paymaster Kit SDK is installed in your project. This package provides the necessary interfaces to interact with the ERC-4337 bundler and the paymaster contract.

Shell
Shell
npm install @account-abstraction/sdk @account-abstraction/contracts
2
Initialize the Smart Account instance

Create an instance of the Smart Account using your wallet’s private key or signer. This instance represents the user’s identity on-chain. It serves as the base object that the UserOp builder will later modify.

TypeScript
TypeScript
import { SmartAccount } from '@paymaster-kit/sdk';

const smartAccount = new SmartAccount({
  signer: privateKey,
  chainId: 1 // Example: Ethereum Mainnet
});
3
Configure the UserOp builder

Attach the paymaster logic to the Smart Account instance. This step routes the gas fees through the paymaster contract. You must provide the paymaster’s address and any required data, such as a sponsorship policy or fee structure.

TypeScript
TypeScript
smartAccount.setPaymaster({
  address: '0xYourPaymasterAddress',
  data: '0x' // Optional: additional paymaster data
});
4
Verify the configuration

Test the setup by sending a mock UserOp. Check that the paymasterAndData field is populated in the outgoing transaction. If the field is empty, the builder is still using the default signer for gas payment.

This configuration ensures that all subsequent transactions initiated by this Smart Account instance will be sponsored by the designated paymaster. Users can now interact with your dApp without needing to hold native ETH for gas fees.

Test the paymaster flow locally

Before deploying to production, you must verify that your paymaster kit correctly sponsors transactions on a testnet. This process ensures that user operations (UserOps) are formatted correctly, gas fees are covered as expected, and the bundler accepts your sponsored calls.

1
Fund the paymaster wallet

Your paymaster contract needs ETH (or the native token) to cover gas costs for sponsored transactions. Transfer sufficient funds from a testnet faucet to the paymaster address. Without this balance, the bundler will reject sponsored UserOps, and transactions will fail.

2
Configure the paymaster for testnet

Update your paymaster kit configuration to point to your chosen testnet RPC endpoint (e.g., Sepolia or Holesky). Ensure the smart account instance is initialized with the correct chain ID and that the paymaster address is registered in your local environment variables.

3
Execute a test transaction

Trigger a transaction from your smart account that requires gas sponsorship. Use your SDK to send a simple ERC-20 transfer or ETH transfer. Monitor the bundler's response to confirm the UserOp was included in a block. Verify that the user pays zero gas while the paymaster deducts the fee from its balance.

4
Verify sponsorship logic

Check that your paymaster's validation logic (e.g., approveUserOp or postOp) executed correctly. Ensure that conditions like token allowances or rate limits are enforced. If the transaction succeeded, confirm that the gas was deducted from the paymaster wallet and not the user's.

If the testnet test fails, check the bundler's error logs. Common issues include insufficient paymaster balance, incorrect signature formats, or RPC endpoint timeouts. Once the flow works on testnet, you can proceed to mainnet deployment with confidence.

Deploy and monitor gas costs

With the paymaster integration complete, the next step is deploying the configuration to your target network. This phase ensures that your smart contract is live and ready to sponsor UserOperations. Before you go live, verify that your funding mechanisms are correctly linked to the paymaster contract.

Pre-deployment checklist

Use this checklist to verify your setup before sending the first transaction:

  • Verify paymaster contract is deployed on the target chain
  • Confirm ERC-20 token allowance is set for the paymaster
  • Test with a small amount of gas sponsorship on a testnet
  • Monitor initial transactions for successful gas payment

Once you have confirmed the deployment, shift your focus to monitoring. Gas sponsorship can quickly become expensive if not watched closely. Set up alerts for unusual spikes in sponsorship volume or cost per transaction. This proactive monitoring helps prevent budget overruns and ensures your gasless experience remains sustainable.

FAQ about paymaster kits