Gasless Transactions

Learn how to execute transactions on DI Network without holding native blockchain tokens for gas fees using meta transactions and gas credits.

Gasless Overview

What are Gasless Transactions?

Gasless transactions allow you to interact with DI Network without needing ETH, MATIC, or other native tokens for gas fees. Instead, you can:

  • Use Gas Credits: Pre-purchased transaction credits

  • Pay with DI Tokens: Use DI tokens for gas payments

  • Sponsored Transactions: Protocol covers gas costs

  • Meta Transactions: Relayers execute on your behalf

Benefits

  • Lower Barrier to Entry: No need for native tokens

  • Simplified UX: Focus on DI Network tokens only

  • Cost Predictability: Fixed credit costs vs volatile gas

  • Cross-Chain Consistency: Same experience across chains

Gas Credits System

How Gas Credits Work

Gas credits are tokenized gas allowances:

  • 1 Credit ≈ 21,000 gas units (standard transfer)

  • Auto-Adjustment: Credits scale with network gas prices

  • No Expiration: Credits never expire

  • Cross-Chain: Work on all supported networks

Purchasing Gas Credits

Credit Pricing

Credits
Price per Credit
Discount
Total Cost

1-99

0.1 DI

0%

0.1 DI each

100-499

0.095 DI

5%

9.5-47.4 DI

500-999

0.09 DI

10%

45-89.9 DI

1000+

0.08 DI

20%

80+ DI

Using Gasless Transactions

Step-by-Step Process

  1. Enable Gasless Mode: Toggle gasless transactions in settings

  2. Check Credit Balance: Ensure sufficient credits available

  3. Execute Transaction: Perform normal DI Network operations

  4. Automatic Deduction: Credits automatically consumed

  5. Transaction Completion: Operation completes without native gas

Gasless Transaction Types

Supported Operations:

  • DSwap trading (spot swaps)

  • DPerp position management

  • DUSD minting and burning

  • Staking and unstaking

  • Governance voting

  • Cross-chain bridging

Credit Consumption:

Meta Transaction System

How Meta Transactions Work

  1. User Signs: Create and sign transaction off-chain

  2. Relayer Submission: Relayer submits to blockchain

  3. Gas Payment: Relayer pays gas, gets reimbursed

  4. Execution: Transaction executes on user's behalf

Meta Transaction Flow

Relayer Network

Relayer Selection:

  • Reputation-Based: Higher reputation = priority

  • Fee-Based: Competitive pricing

  • Geographic: Regional relayers for speed

  • Redundancy: Multiple relayers for reliability

Payment Methods

DI Token Payments

Direct Gas Payment:

  • Pay gas fees directly with DI tokens

  • 20% discount compared to native token costs

  • Automatic conversion at current rates

  • No need to hold multiple tokens

Protocol Sponsorship:

  • New user onboarding transactions

  • Governance participation incentives

  • Special event promotions

  • Community program benefits

Conditions for Sponsorship:

Credit Auto-Refill

Automatic Top-Up:

Managing Gas Credits

Credit Balance Tracking

Usage Analytics

Credit Consumption Tracking:

  • Daily/weekly/monthly usage patterns

  • Transaction type breakdown

  • Cost analysis vs native gas

  • Efficiency recommendations

Credit Transfers

Gifting Credits:

Corporate Distribution:

  • Bulk credit allocation to team members

  • Usage monitoring and limits

  • Departmental credit pools

  • Expense tracking and reporting

Gasless Trading

DSwap Gasless Trading

Spot Trading Without Gas:

DPerp Gasless Trading

Perpetual Trading:

  • Open positions without native tokens

  • Manage positions with credits

  • Close positions efficiently

  • Batch operations for savings

Batch Transactions

Multiple Operations:

Cross-Chain Gasless

Multi-Chain Credits

Universal Credits:

  • Same credits work on all supported chains

  • Automatic network detection

  • Optimal chain selection for operations

  • Unified credit balance across chains

Cross-Chain Operations

Gasless Bridging:

Advanced Features

Gasless Governance

Voting Without Gas:

  • All governance votes are gasless

  • Sponsored by protocol treasury

  • Encourages participation

  • No barrier to democratic participation

Gasless Staking

Staking Operations:

  • Stake DI tokens without ETH

  • Claim rewards gaslessly

  • Compound rewards efficiently

  • Manage lock periods easily

Smart Contract Integration

Gasless DApp Integration:

Troubleshooting

Common Issues

Insufficient Credits:

  • Check credit balance before transactions

  • Set up auto-refill to prevent issues

  • Purchase credits in advance

Transaction Failures:

  • Verify gasless mode is enabled

  • Check relayer network status

  • Ensure sufficient credit balance

  • Try again during low congestion

Credit Pricing Changes:

  • Monitor credit costs regularly

  • Adjust auto-refill settings

  • Consider bulk purchases for discounts

Getting Help

Support Resources:

  • Gasless transaction FAQ

  • Credit management guides

  • Community support channels

  • Technical documentation

Best Practices

Credit Management

Transaction Optimization

Security Considerations

Future Enhancements

Planned Features

  • Credit Staking: Earn yield on unused credits

  • Credit Marketplace: Trade credits with others

  • Enhanced Batching: More complex operation bundles

  • Cross-Protocol Credits: Use credits on partner protocols

Staying Updated

  • Follow gasless system updates

  • Participate in beta testing

  • Provide feedback on user experience

  • Monitor new gasless features

Last updated