Logo Circle Centered Light
Documentation
Search
Get Started
  • Intro
  • Quick Start
  • Features
How to guides
  • Configure Environment
    • Set API Key
    • Set Target Blockchain
    • Set Gas Behavior
      • Pay Gas in ERC-20s
      • Pay Gas in Base Token
      • Transact Gas-Free
    • Set Developer Fee
    • Set Transaction Mode
  • Authorize Transactions
    • Single-Factor Auth
    • Multi-Factor Auth
    • Auth Types
      • Private Key
      • Browser Wallet
      • Google
      • Twitter
      • Apple
      • Discord
      • Coinbase Mobile Wallet
      • Wallet Connect
  • Execute Transactions
    • Create FunWallet
    • Transfer Tokens
    • Swap Tokens
    • Arbitrary Transactions
Advanced
  • Create Gas Sponsor
    • Gasless Sponsor
      • Whitelist Users
      • Blacklist Users
    • Token Sponsor
      • Whitelist Users
      • Blacklist Users
  • Get Wallet Address
API Reference 0.2.5
  • Auth
    • EOA
    • MultiAuthEOA
  • EnvironmentManager
  • FunWallet
  • GasSponsor
    • TokenSponsor
    • GaslessSponsor
  • Transactions
  • Receipt
Resources
  • FAQ
  • Testing
    • Fun Testnet
    • Local Fork
    • Göerli
  • Changelog
  • Known Bugs
  • Common Errors
  • Security
  • Account Abstraction
Send Feedback
Report an Issue

GasSponsor

Allow FunWallets to pay gas in a multitude of ways

Overview

GasSponsor serves as a foundation for classes determining the gas flows of FunWallet Transactions. This includes deciding who pays for gas and what assets are involved in the paying of gas.

Currently, the FunWallet SDK offers the following ways of sponsoring gas:

TokenSponsor

Allow FunWallets to pay gas in ERC-20 tokens

GaslessSponsor

Allow FunWallets to transact without paying for gas

Next
TokenSponsor
On this page
  • GasSponsor
    • Overview