Prerequisites
Before creating a paymaster, ensure you have:- A paid subscription (PRO, ULTRA, or ENTERPRISE)
- Access to the Developer Portal
- SOL to fund the paymaster
Creating a Paymaster
Step 1: Navigate to Paymasters
- Log in to the Developer Portal
- Select your project
- Click Paymaster in the sidebar
Step 2: Create New Paymaster
- Click Create Paymaster
- Configure the settings (see below)
- Click Create
Step 3: Configure Settings
Label (Optional)
A display name for your paymaster:- Default:
Paymaster {first4}...{last4}of the public key - Use descriptive names like
production-mainnetordev-testing - Maximum 64 characters
Usage API Threshold
Maximum API calls per month:- Default: 1,000
- Minimum: 1
- Prevents excessive API usage
SOL Usage Threshold
Maximum SOL to spend per month:- Default: 10 SOL (10,000,000,000 lamports)
- Minimum: 0.000000001 SOL
- Controls monthly spending
Single TX Limit
Maximum SOL per single transaction:- Default: 0.1 SOL (100,000,000 lamports)
- Minimum: 0.000000001 SOL
- Prevents large individual transactions
Allow Other Instructions
Whether to sponsor non-Swig instructions:- Default:
false - Set to
trueto sponsor any transaction type - Use with caution (increases potential for abuse)
Step 4: Paymaster Created
After creation, you’ll see:- Public Key - The paymaster’s Solana address
- Label - Your configured display name
- Balance - Current SOL balance (starts at 0)
Funding Your Paymaster
After creation, your paymaster needs SOL to sponsor transactions.Get the Address
- Go to the Paymaster page
- Find your paymaster in the list
- Copy the Public Key (Solana address)
Send SOL
Transfer SOL to the paymaster address: Using Solana CLI:- Open your Solana wallet (Phantom, Solflare, etc.)
- Send SOL to the paymaster address
- Wait for confirmation
Verify Balance
- Return to the Developer Portal
- View the paymaster’s balance
- The balance updates after blockchain confirmation
Example Configuration
Development Paymaster
For testing on devnet:Production Paymaster
For mainnet applications:Using Your Paymaster
Get the Public Key
You’ll need the paymaster public key for API calls:Create Wallets with Paymaster
Use the paymaster when creating Swig wallets:Sponsor Transactions
Use the paymaster to sponsor transactions:Tier Limits
Your subscription tier limits how many paymasters you can create:
Check your subscription status if you hit the limit.
Multiple Paymasters
Consider creating multiple paymasters for:Different Environments
dev-devnet- Development testingstaging-devnet- Staging environmentproduction-mainnet- Live application
Different Use Cases
user-onboarding- New user transactionshigh-value-ops- Large transactions (higher limits)automated-tasks- Scheduled operations
Cost Tracking
- Separate paymasters per product/feature
- Easier to attribute costs
- Better usage visibility
Troubleshooting
”Subscription required” Error
You need a paid subscription:- Go to Billing in the sidebar
- Upgrade to PRO or higher
- Try creating the paymaster again
”Paymaster limit reached” Error
You’ve hit your tier’s paymaster limit:- Check your current paymaster count
- Delete unused paymasters
- Or upgrade your subscription
Paymaster Balance is 0
The paymaster needs funding:- Copy the paymaster’s public key
- Send SOL to that address
- Wait for blockchain confirmation

