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.

Getting started

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!
With the React SDK, use the useSendTransaction hook with sponsor: true:
import {useSendTransaction, useWallets} from '@privy-io/react-auth';

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

sendTransaction(
  {
    to: '0xE3070d3e4309afA3bC9a6b057685743CF42da77C',
    value: 100000
  },
  {
    sponsor: true // Enable gas sponsorship
  }
);
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.

Next steps

Transactions return immediatelyGas-sponsored transactions return immediately after broadcast without waiting for confirmation. Learn how to track transaction status with webhooks in the transaction management guide.
Secure your implementation before productionGas sponsorship requires protection against abuse to prevent drainage of your balance. Review the security best practices before deploying to production.