Set up the smart account wallet

The Paymaster Kit 2026 relies on the ERC-4337 Smart Account (Account Abstraction) to handle sponsored transactions. This wallet acts as the recipient for on-chain wage payments, absorbing gas fees so employees can transact without holding ETH. Setting up this infrastructure is the first step in automating payroll.

1. Install the Smart Account SDK

Initialize your development environment by installing the necessary packages. The @account-abstraction/sdk and provider-specific wrappers provide the base classes for creating and managing smart accounts. This setup allows your backend to interact with the Paymaster Kit's entry point.

2. Initialize the Account Instance

Create a new smart account instance using the user's public key. This instance serves as the unique identifier for the employee's wallet on-chain. Configure the account to work with the specific Paymaster Kit you have deployed, ensuring the entry point address matches your network configuration.

JavaScript
import { SmartAccount } from '@account-abstraction/sdk';

const smartAccount = await SmartAccount.create({
  owner: userPrivateKey,
  paymaster: paymasterKitConfig,
  entryPoint: '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789',
});

3. Fund the Paymaster Contract

Before the smart account can receive sponsored transactions, the Paymaster Kit contract must hold sufficient funds to cover gas costs. Transfer native tokens (ETH, MATIC, etc.) or ERC-20 tokens (if using an ERC-20 paymaster variant) to the Paymaster contract address. This ensures that when an employee initiates a wage transfer, the network fees are paid automatically.

4. Verify Account Deployment

Once the account is initialized, trigger a deployment transaction. This sends the account code to the blockchain, making it active and ready to receive payments. Use a block explorer to confirm the contract is deployed at the expected address. Only after verification can the Paymaster Kit begin sponsoring transactions for this wallet.

Deploy the Paymaster Contract

Deploying the Paymaster contract is the foundational step in automating on-chain wage payments. This contract acts as the escrow mechanism, holding the gas funds required to subsidize transaction fees for your employees. By deploying the Paymaster Kit 2026 logic, you ensure that salary recipients can interact with your dApp without needing native ETH.

The deployment process requires careful configuration of the funding source and the beneficiary address. You must choose between a StakeablePaymaster, which locks capital to ensure reliability, or an ERC-20 Paymaster, which allows users to pay gas in tokens like USDC. The following steps guide you through the technical deployment using the Paymaster Kit 2026 framework.

Paymaster Kit
1
Configure Paymaster Parameters

Before deployment, define the parameters that control how gas is subsidized. You need to specify the token address if using an ERC-20 Paymaster, or the staking amount if using a Stakeable variant. Ensure your funding wallet has sufficient balance to cover the initial deposit and any operational overhead. This configuration determines the liquidity available for your employees' transactions.

Paymaster Kit
2
Prepare the Deployment Script

Use the Paymaster Kit 2026 deployment script to compile and prepare the contract. This script handles the necessary ABI encoding and ensures the contract constructor arguments match your configured parameters. Verify that your environment variables for the RPC endpoint and private key are correctly set to prevent deployment failures.

Paymaster Kit
3
Execute the Deployment

Run the deployment command to push the Paymaster contract to the target network. This transaction will create the contract instance and initialize the storage variables. Once confirmed, record the contract address, as this will be the address your Smart Accounts must set as the paymasterAndData source for fee payment.

Paymaster Kit
4
Fund the Paymaster

A deployed Paymaster is useless without capital. Transfer the required gas funds (ETH or the specified ERC-20 token) to the new contract address. For ERC-20 Paymasters, you may need to approve the contract to spend your tokens if using an allowance-based model. This step ensures the Paymaster has the liquidity to cover your employees' transaction fees.

Paymaster Kit
5
Verify Contract on Block Explorer

Finally, verify the contract source code on a block explorer like Etherscan. This allows you to read the contract state and interact with it directly for debugging. Verification also confirms that the deployed bytecode matches your source code, providing transparency for your organization and any future auditors.

After deployment, test the Paymaster with a small transaction to ensure it correctly subsidizes fees. You can use the MetaMask Smart Account interface to send a test transaction, specifying your Paymaster address. If the transaction succeeds without the user paying gas, your Paymaster Kit 2026 is ready for production wage payments.

Fund the Paymaster with Gas Tokens

Your Paymaster Kit 2026 contract needs fuel to operate. Without deposited gas tokens, your users cannot submit transactions, even if they hold ample ETH or ERC-20 balances in their wallets. The paymaster acts as the bridge, paying the network validators on behalf of your employees. To keep this bridge open, you must deposit assets into the contract.

Deposit ETH for Base Gas

For basic Ethereum Mainnet or L2 operations, depositing native ETH is the most straightforward method. This covers the fundamental execution costs of every transaction your employees submit. You can send ETH directly to your Paymaster contract address using any standard wallet or deployment script.

  1. Identify your deployed Paymaster contract address.
  2. Send the desired amount of ETH from your treasury wallet.
  3. Verify the balance on-chain to ensure the contract is funded.

Fund with ERC-20 Tokens

To allow employees to pay gas fees in stablecoins like USDC or DAI, you must deposit those specific ERC-20 tokens into the Paymaster. This requires the contract to have approval to spend the tokens or for you to transfer them directly if the contract supports it.

  1. Approve the Paymaster contract to spend your ERC-20 tokens, or transfer them directly if supported.
  2. Call the deposit or fund function on your Paymaster contract, specifying the token address and amount.
  3. Monitor the contract's token balance to ensure it remains sufficient for upcoming payroll batches.

Maintain Solvency

Gas prices fluctuate, and payroll volumes can spike. Treat your Paymaster balance like a corporate credit card limit: monitor it regularly. If the balance drops too low, transactions will fail, and employees will be unable to access their accounts. Set up automated alerts to notify your treasury team when reserves fall below a safe threshold.

Paymaster Kit

Integrate the bundler endpoint

To automate on-chain wage payments, your backend must relay UserOperation objects to the EntryPoint contract. The Paymaster Kit 2026 handles sponsorship logic, but it relies on a Bundler service to package these operations and submit them to the mempool.

This section covers connecting your Paymaster Kit to a bundler endpoint. We will use Alchemy as the primary example, as it provides a reliable, managed infrastructure for ERC-4337. The process involves configuring your Paymaster Kit to recognize the bundler’s URL and ensuring the entry point address matches your deployment.

Paymaster Kit
1
Obtain bundler credentials

Create an account on your chosen bundler provider (e.g., Alchemy, Stackup, or Pimlico). Navigate to the dashboard to generate your API key and locate the specific bundler endpoint URL for your target network (e.g., https://eth-sepolia.g.alchemy.com/v2/YOUR_KEY). Ensure the endpoint supports the eth_sendUserOperation RPC method.

Paymaster Kit
2
Configure Paymaster Kit environment variables

Update your Paymaster Kit 2026 environment configuration. Set BUNDLER_URL to the endpoint obtained in the previous step. Crucially, set ENTRY_POINT_ADDRESS to the version of the EntryPoint contract your Paymaster Kit is deployed against. Mismatched versions will cause silent failures during operation submission.

3
Initialize the bundler client

In your backend code, initialize the bundler client using the Paymaster Kit SDK. Pass the BUNDLER_URL and ENTRY_POINT_ADDRESS as configuration options. This client will handle the serialization of UserOperation objects and manage the retry logic for failed submissions.

4
Test with a dry-run simulation

Before processing real wage payments, send a test UserOperation using the eth_callUserOperation RPC method. This simulates the execution without broadcasting it to the chain. Verify that the Paymaster Kit correctly sponsors the gas fees and that the bundler accepts the operation structure.

5
Deploy to production

Once the dry-run succeeds, switch your Paymaster Kit configuration to point to the production bundler endpoint. Monitor the first few wage payment batches closely. Check the bundler’s dashboard for any dropped operations or gas price adjustments, and adjust your maxPriorityFeePerGas settings if necessary.

For detailed RPC method specifications, refer to the ERC-4337 standard documentation. If you encounter specific gas estimation errors, check the bundler’s API logs for rejection reasons, which often include the exact UserOperation field that failed validation.

Execute the payroll transaction

With the payroll batch prepared and the smart account funded, the DAO or HR system triggers the final transfer. This step is where the Paymaster Kit 2026 transforms a standard on-chain transaction into a gasless experience for the employee.

The process begins when the smart contract calls the Paymaster’s handlePaymasterRequest function. This function validates the transaction context, checks that the batch size matches the approved payroll schedule, and confirms the smart account has sufficient balance (or allowance) to cover the gas fees. Unlike traditional wallets that require ETH to execute, the smart account here relies on the Paymaster to sponsor the gas.

Once validated, the Paymaster signs the transaction with its own key and submits it to the bundler. The bundler aggregates this transaction with others and sends it to the EntryPoint contract. Because the Paymaster has pre-funded the EntryPoint, the employee’s wallet never needs to hold native tokens for gas. The transaction is processed, and the wages are deposited directly into the employee’s smart account.

This flow ensures that the employee receives their full wage amount without any deductions for network fees. The entire process is transparent and verifiable on-chain, providing an immutable record of payment that both the DAO and the employee can audit.

Paymaster Kit
1
Initiate the batch

Review the payroll batch in the HR dashboard. Ensure all employee smart accounts are verified and the total wage amount matches the approved budget. Click "Submit Batch" to trigger the Paymaster validation.

2
Validate and sponsor

The Paymaster Kit 2026 validates the transaction context and confirms gas sponsorship. It signs the transaction and sends it to the bundler, which aggregates it for inclusion in the next block.

3
Confirm on-chain

Monitor the transaction hash on a block explorer. Once confirmed, the wages are credited to the employees’ smart accounts. The Paymaster balance is deducted for the gas fees, completing the gasless payroll cycle.

Verify gas sponsorship works

Once the Paymaster Kit 2026 is integrated, you must confirm that the sponsorship logic actually executes on-chain. A misconfigured paymaster can lead to failed transactions or unexpected user costs. Follow this sequence to validate the gasless experience.

Paymaster Kit

Verification Checklist

  • Zero user gas: Confirm the user’s native token balance remains unchanged after signing the transaction.
  • Paymaster balance: Verify the paymaster’s token balance decreases by the exact gas cost incurred.
  • Transaction mined: Ensure the transaction is included in a block with a successful status.

For ERC-20 paymasters, MetaMask’s documentation provides a reference for validating these sponsorship flows with smart accounts.

Common paymaster deployment: what to check next

Deploying an ERC-4337 paymaster involves specific technical constraints that differ from standard account abstraction setups. Below are the most frequent questions regarding staking, token support, and operational limits in the Paymaster Kit 2026.