Skip to main content
Setting up native gas sponsorship allows your app to pay for all transaction fees, creating a frictionless experience across all networks.
1

Enable gas sponsorship in the dashboard

Go to the gas sponsorship tab in the Privy Dashboard, and enable gas sponsorship for your application.images/gas-sponsorship.png
2

Configure chains

Select which chains you want to enable sponsorship for. Sponsored requests may only come from the chains that you have configured. Want support for more networks? Reach out to us!
3

Send transaction requests

Apps must use TEE execution in order to use our native gas sponsorship feature. Learn how to migrate here!
  • Ethereum (React)
  • Ethereum (REST API)
  • Ethereum (Rust SDK)
  • Solana (REST API)
  • Solana (Rust SDK)
With the React SDK, use the useSendTransaction hook with sponsor: true:
import {useSendTransaction} from '@privy-io/react-auth';

const {sendTransaction} = useSendTransaction();
const {wallets} = useWallets();

sendTransaction(
  {
    to: '0xE3070d3e4309afA3bC9a6b057685743CF42da77C',
    value: 100000
  },
  {
    sponsor: true // Enable gas sponsorship
  }
);
Allow transactions from the clientTo sponsor transactions from your client-side application, enable this setting in your gas sponsorship dashboard configuration. When disabled, transactions can only be sponsored from your server.Note: Client-side gas sponsorship is currently available for Ethereum-based transactions only.
Certain flows that require on-chain ECDSA signature verification such as Permit2 are not supported by EIP-7702 upgraded wallets. We recommend using an approval based flow where possible until EIP-8010 is finalized.
I