What is a Paymaster?
Each cross-chain transaction on Chainrails incurs protocol fees to cover costs associated with bridges and relayers. These fees are charged in the token being transferred, eliminating the need for users to hold multiple tokens for gas or fees. With a Paymaster, you can:- Cover protocol fees on behalf of your users
- Remove payment friction and improve conversion rates
- Control your transaction costs with flexible billing options
Getting Started
Step 1: Access the Dashboard
Navigate to the Chainrails Dashboard and go to the Billing section.Step 2: Choose Your Billing Plan
Chainrails offers three billing options to suit different use cases:- Free Plan
- Pay As You Go (PAYG)
- Monthly Subscription
Best for: Testing and low-volume applications
- Users pay their own protocol fees
- No additional costs to you
- Easy to get started
- Upgrade anytime as you scale
Step 3: Enable the Paymaster
Once you select either PAYG or Monthly Subscription, the Paymaster is automatically enabled for your account. All transactions using your API key will have protocol fees covered.Using the Paymaster in Your Application
Once enabled, the Paymaster works automatically—no code changes required. Simply make transactions as usual:- SDK
- API
fees field as that is returned to track usage, but you would notice the totalAmount field would be the same as the amount you are sending.
Managing Your Paymaster
For PAYG Plans
Funding Your Balance:- Go to the Dashboard → Billing section
- Click “Add Funds” to deposit funds to your paymaster balance
- Choose your funding amount
- View real-time balance in the Dashboard
- Track transaction history and fee breakdowns
- Set up low-balance alerts (coming soon)
For Monthly Subscription Plans
Transaction Quotas:- Your plan includes a set number of transactions per month
- View your current usage and remaining quota in the Dashboard
- Overages are automatically charged at the end of your billing cycle
- Transactions never fail due to insufficient balance
- Automatic renewal each month
- Upgrade or downgrade anytime
Switching Plans
You can change your billing plan at any time from the Dashboard:- Navigate to Billing → Change Plan
- Select your new plan
- Confirm the change
Plan changes take effect immediately for all new transactions. Any existing in-flight transactions will use your previous plan settings.
Best Practices
When to Use Paymasters
When to Use Paymasters
- Building consumer-facing dApps where UX is critical
- Running promotions or subsidizing early user transactions
- Enterprise applications requiring predictable fee structures
Cost Optimization Tips
Cost Optimization Tips
- Start with PAYG to understand your usage patterns
- Switch to Monthly Subscription when volume becomes predictable
- Monitor transaction patterns in the Dashboard
Monitoring and Alerts
Monitoring and Alerts
- Enable low-balance notifications for PAYG plans (coming soon)
- Review monthly usage reports
- Track fee trends over time
FAQ
What happens if my PAYG balance runs out?
What happens if my PAYG balance runs out?
Transactions will fail if your paymaster balance is insufficient. Users will see an error and the transaction won’t be processed. To avoid this, regularly monitor your balance and top up as needed.
Can I disable the Paymaster temporarily?
Can I disable the Paymaster temporarily?
Yes, you can switch back to the Free plan at any time. This will require users to pay their own protocol fees for subsequent transactions.
How are fees calculated?
How are fees calculated?
Protocol fees vary based on the source and destination chains, token being transferred, and current network conditions. View detailed fee breakdowns for each transaction in your Dashboard.

