Overview
Paymasters allow you to sponsor (pay for) transaction fees so users don’t have to worry about gas costs. Starkzap supports two paymaster options depending on your wallet connection strategy.- AVNU Paymaster
- Cartridge Paymaster
Use AVNU Paymaster for Privy and Private Key strategies. AVNU provides both gasfree (you sponsor) and gasless (user pays in tokens) modes.
When to Use AVNU Paymaster
- ✅ Using Privy strategy for wallet connection
- ✅ Using Private Key strategy (server-side)
- ✅ Want to sponsor all gas fees for users (gasfree mode)
- ✅ Want users to pay gas in tokens instead of STRK (gasless mode)
- You Sponsor (Gasfree)
- Gasless Mode
In gasfree mode, your dApp covers all gas costs. This is ideal for:Then configure the SDK to use your proxy:
- User onboarding flows
- Premium UX experiences
- Consumer applications
Setup
1. Get an API Key
Get an API key from the AVNU Portal. This is required for gasfree mode.2. Configure the SDK
3. Use Sponsored Transactions
Propulsion Program
The Starknet Foundation Propulsion Program offers up to $1M in gas subsidies for qualifying projects. This program helps reduce the cost of sponsoring transactions for your users.Server-Side Paymaster Proxy
For production applications, you may want to proxy paymaster requests through your backend:Best Practices
- Use gasfree mode for onboarding and critical user flows
- Use gasless mode to let users pay in their preferred tokens
- Proxy paymaster requests through your backend in production to keep API keys secure
- Monitor usage through the AVNU Portal dashboard
- Apply for Propulsion Program if eligible for gas subsidies
Resources
- AVNU Paymaster Documentation
- AVNU Portal - Get your API key and monitor usage
- Propulsion Program - Gas subsidies up to $1M
- starknet.js Paymaster Guide
Choosing the Right Paymaster
Use AVNU Paymaster if:- You’re using Privy or Private Key strategies
- You want control over gas sponsorship
- You need gasless mode (user pays in tokens)
- You’re using Cartridge Controller strategy
- You’re building gaming applications
- You want automatic gasless transactions with zero setup
Next Steps
- Learn about AVNU Paymaster Integration for detailed setup
- Learn about Cartridge Controller Integration for gaming applications
- Configure your SDK Configuration with paymaster settings