Sponsorship Models
VelumX supports two sponsorship policies. Choose based on your business model.DEVELOPER_SPONSORS
The developer’s relayer pays STX gas. Users pay nothing at all.How it works
- Developer builds any Stacks contract call with
sponsored: true - User signs the transaction (no STX needed)
velumx.sponsor(signedTxHex)— relayer co-signs and broadcasts- On-chain: the contract call executes, relayer pays STX gas
No paymaster contract needed
The developer calls any protocol contract directly — Bitflow, ALEX, Velar, StackingDAO, custom contracts. VelumX doesn’t need to know what contract is being called.Best for
- Zero-friction onboarding (day-0 users with empty wallets)
- Subsidized DeFi experiences
- Any protocol action — unlimited coverage
USER_PAYS
The user pays a SIP-010 token fee. The developer deploys a paymaster contract that atomically collects the fee and executes the action.How it works
- Developer deploys their own paymaster contract (copy
velumx-defi-paymaster-v1as template) - User signs a transaction calling the paymaster
velumx.sponsor(signedTxHex)— relayer co-signs and broadcasts- On-chain: paymaster collects fee → executes action (atomic rollback if action fails)
Developer owns the paymaster
VelumX does not deploy a shared paymaster. Each developer deploys their own, customized for their protocol. This means:- Full control over what actions are supported
- No dependency on VelumX contract upgrades
- Immutable once deployed — no admin key risk
Best for
- Sustainable fee models where users pay in the token they hold
- Protocols where users already have stablecoins (aeUSDC, USDCx)
- Revenue generation — developer earns markup on every transaction
Comparison
| Factor | DEVELOPER_SPONSORS | USER_PAYS |
|---|---|---|
| User pays token fee | ❌ No | ✅ Yes |
| Paymaster contract needed | ❌ No | ✅ Yes (developer deploys) |
| Protocol coverage | Unlimited | Whatever your paymaster supports |
| Developer revenue | ❌ None | ✅ Fee markup |
| Integration complexity | Low | Medium |
| Best for | Onboarding | Sustainable DeFi |
High-Impact Use Cases
| Vertical | Recommended Policy | Notes |
|---|---|---|
| New user onboarding | DEVELOPER_SPONSORS | User has no tokens yet |
| Stablecoin swaps | USER_PAYS | User pays fee in aeUSDC |
| sBTC bridge | USER_PAYS | User pays fee in sBTC |
| NFT minting | DEVELOPER_SPONSORS | Subsidize the mint experience |
| Governance voting | DEVELOPER_SPONSORS | Remove all friction |
| DeFi protocol | USER_PAYS | Sustainable, user-funded gas |