Gas Sponsorship

Overview

Gas sponsored swaps on Solana enable users to execute token swaps without needing to hold sufficient SOL for transaction fees and rent exemption requirements. Blink's Solana gas sponsorship solution addresses the unique challenges of the Solana blockchain, including rent exemption minimums and transaction bundling complexities.

Solana-Specific Use Cases

Primary Use Cases

  • No SOL Holdings: Users hold tokens like USDC, BONK, or other SPL tokens but have zero SOL balance

  • Insufficient SOL for Rent: Users have some SOL but not enough to cover both transaction fees and maintain rent exemption after the swap

  • CEX-to-Wallet Onboarding: Users transferring assets from centralized exchanges who receive tokens but no SOL for transaction fees

  • Cross-Chain Bridge Recipients: Users receiving tokens from other chains who lack SOL for subsequent transactions

  • Reward certain token holders: Users that hold a certain token or NFT get free swaps

Common Scenarios

  • User holds 1,000 USDC but 0 SOL and wants to swap to another token

  • User has 0.001 SOL (enough for fees) but swapping would drop them below rent exemption threshold

  • New user receives airdropped tokens but has never held SOL

Our Solana Gas Sponsorship Offers

Passive Sponsorship

Blink's passive sponsorship parses transactions and increases landing rates of your users' swaps by up to 5%. If you would like to enable gas sponsorship, please reach out to [email protected] with the following configuration information:

  • The list of swap providers you use (e.g. Rango, Jupiter, ...)

  • The number of sponsored daily swaps each user is given

  • Any additional limitations (examples below)

    • Only sponsor users that hold a certain token

    • Compute budget limit

    • Max sponsor cost per transaction

    • Whether you want to only sponsor transactions that are profitable for you when factoring in swap or referral fees

  • Whether you would like to take advantage of our active sponsorship

Once we have enabled your key, your gas sponsorship is active! We will proactively sponsor transactions for you that would otherwise fail or revert.

Active Sponsorship

On top of the passive sponsorship, we offer an active sponsorship that will significantly reduce sponsorship costs (~90% reduction). It requires a simple integration in your pre-signature transaction handling.

Solana swaps often create and close accounts atomically. There is no cost, but it does require SOL for rent-exemption within the transaction (ca 0.003 SOL). With a passive sponsorship, users are gifted this value as the account is closed to their benefit even if we sponsor it. In an active sponsorship, we can recoup the majority of the sponsorship, meaning we can sponsor a much greater number of transactions profitably for you.

  1. Request a sponsorship: Send a pm_isSponsorable request to see whether your transaction requires an active sponsorship. If we return false, skip step 2 and proceed normally.

  2. Add the Blink Transfer instruction: If we return true, add a transfer instruction to our sponsorship wallet before signing it.

  3. Submit the transaction normally: Send the signed transaction to us. We will always sponsor with an amount that is greater than the transfer instruction is sending back to us.

How Solana Gas Sponsorship Works

Jito Bundle Integration

Blink leverages Jito bundles to ensure transaction reliability and cost efficiency:

  1. Pre-execution Validation: Transactions are simulated within the bundle environment before execution

  2. Atomic Execution: SOL transfer and user swap execute atomically in the same bundle

  3. Revert Protection: Failed transactions don't consume sponsored SOL, protecting against unnecessary costs

  1. Transaction Analysis: Blink detects insufficient SOL for transaction execution

  2. Rent Exemption Calculation: System calculates minimum SOL needed for rent exemption post-swap

  3. Bundle Simulation: Complete transaction bundle is simulated to ensure success

  4. SOL Transfer: Required SOL amount is transferred to user's wallet within the bundle

  5. Swap Execution: User's swap transaction executes immediately after SOL transfer

Solana Rent Exemption Considerations

Rent Exemption Requirements

Solana accounts must maintain a minimum SOL balance to remain "rent exempt." This creates additional complexity for gas sponsorship:

  • Minimum Balance: Typically ~0.00203928 SOL per account

  • Post-Swap Balance: Users must retain sufficient SOL after transaction fees

  • Token Account Creation: New token accounts require additional rent exemption SOL

  • Comprehensive Calculation: Blink calculates total SOL needed including transaction fees AND rent exemption

  • Account Analysis: System checks if new token accounts will be created during the swap

  • Buffer Provision: Ensures users maintain rent exemption status after transaction completion

Cost Structure Example

Required SOL = Transaction Fee + Rent Exemption Buffer + New Account Rent (if applicable)
- Transaction Fee: ~0.000005 SOL
- Rent Exemption: ~0.00203928 SOL  
- New Token Account: ~0.00203928 SOL (if creating new account)
Total: ~0.004084 SOL minimum

Fee and Revenue Model

Threshold Configuration

Wallets can configure gas sponsorship thresholds to ensure profitability:

Sponsorship Condition: Swap Fee Revenue ≥ (SOL Transfer Cost + Rent Exemption Cost)

Revenue Optimization

  • Dynamic Thresholds: Adjust sponsorship thresholds based on SOL price volatility

  • Fee Markup: Wallets can add premium swap fees for sponsored transactions

  • Volume Incentives: Higher swap volumes can justify lower thresholds

Example Scenario

User Swap: $10,000 USDC → BONK
Wallet Fee: 0.5% = $50
Required SOL: 0.004084 SOL (~$0.80 at $200/SOL)
Net Revenue: $50 - $0.80 = $49.20
Sponsorship Decision: ✅ Profitable

Implementation Details

API Integration

No additional technical integration required. Existing Blink swap endpoints automatically handle:

  • SOL balance detection

  • Rent exemption calculation

  • Bundle creation and execution

  • Revenue tracking and reporting

Last updated