Paymaster
Paymaster is a branded Address type representing an ERC-4337 paymaster contract. Paymasters sponsor gas fees for user operations, enabling gasless transactions or allowing users to pay gas in ERC-20 tokens.Quick Start
Type Definition
API Reference
from
Create Paymaster from address input.toHex
Convert Paymaster to hex string.equals
Check if two Paymaster addresses are equal.Paymaster Functionality
Paymasters enable:- Gasless transactions: Sponsor user gas fees completely
- Token payment: Users pay gas in ERC-20 tokens
- Conditional sponsorship: Rules-based gas sponsorship
- Rate limiting: Control spending per account/time period
Usage with User Operations
Related Types
- Paymaster (Effect) - Effect.ts integration with Schema validation
- UserOperation - User operation with paymaster field
- EntryPoint - Entry point contract
- Bundler - Bundler address
- Address - Base address type

