Sponsorship Models
VelumX supports multiple implementation patterns to accommodate various business models, from zero-fee onboarding to subsidized protocol interactions.1. User-Settled Sponsorship (USER_PAYS)
This is the standard model for existing DeFi protocols where the user already holds a SIP-010 token and wishes to avoid acquiring STX.Key Characteristics
- Fee Settlement: User pays a nominal infrastructure fee in a supported asset (e.g., USDCx).
- Relayer Role: Automatically converts the token fee to STX gas and broadcasts the transaction.
- Developer Impact: Zero cost to the dApp developer.
Implementation Pattern
The SDK’ssponsor() method calculates the exact settlement amount required based on real-time oracle data.
2. Full Developer Sponsorship (DEVELOPER_SPONSORS)
Ideal for “Day 0” onboarding where the user holds no assets. The project developer subsidizes 100% of the transaction cost.Key Characteristics
- Fee Settlement: The developer’s derived relayer node settles the STX fee directly.
- User UX: Pure gasless experience. User pays $0 and 0 tokens.
- Developer Impact: Consumes the developer’s STX gas tank on the relayer node.
3. High-Impact Use Cases
The VelumX architecture is fundamentally asset-agnostic and can be applied to any interaction on the Stacks blockchain.Vertical Integrations
| Vertical | Implementation Detail |
|---|---|
| Bridges | Withdraw cross-chain assets (e.g., sBTC, USDCx) without holding native STX. |
| DEX / AMM | Execute swaps and provide liquidity using only the traded pair. |
| NFT Marketplaces | Mint and transfer collectibles with zero-friction onboarding. |
| Governance / DAOs | Increase voting participation by removing the gas cost barrier. |
Custom Implementation Guide
To integrate VelumX into your custom smart contract, ensure your public functions accept the following standardized parameters:- Prioritize Fee Transfer: Always execute the
fee-tokentransfer to therelayeras the first step. - Execute Business Logic: proceed with your contract’s primary state changes.
- Atomic Completion: Ensure the entire sequence is wrapped in a single response to guarantee atomicity.