DFIELDSOLUTIONS

Free download

LabERC-4337 paymaster starter

Gasless UX · ERC-4337 paymaster contract + bundler integration template. Compatible with Arbitrum, Base, Optimism, Polygon. MIT.

Free download1 sections · 2 min readBy Dezső Mező · Published .mdtemplateSolidity + Markdownerc-4337paymasteraccount-abstractionsolidity

Gasless UX · ERC-4337 paymaster contract + bundler integration template. Compatible with Arbitrum, Base, Optimism, Polygon. MIT.

Complete paymaster template for ERC-4337 · ERC-20-paid gas, whitelist, spending limits, rate-limits. With Biconomy / Alchemy bundler integration examples.

01What the file contains

  • Paymaster contract (Solidity 0.8.26)
  • ERC-20 gas payment with token whitelist
  • User spending limit + rate limit enforcement
  • Biconomy + Alchemy bundler integration
  • Foundry invariant test suite

What to take away

  • Paymaster contract (Solidity 0.8.26)
  • ERC-20 gas payment with token whitelist
  • User spending limit + rate limit enforcement
  • Biconomy + Alchemy bundler integration
  • Foundry invariant test suite
We build this for clientsBlockchain

Read the full write-up

More from the lab

Browse all entries

Want this looked at on your own system?Start a conversation

5.0
“New shop, more orders in the first week.”Müller Márk · GeekCornerManaging Director · Hungary