Skip to main content
Privy supports two gas payment modes. Choose the one that fits your app:
Your app’s gas credits cover transaction fees for all users. Users transact without ever needing to hold ETH or native tokens.

Getting started

1

Enable gas sponsorship in the dashboard

Go to the gas sponsorship tab in the Privy Dashboard and select App pays.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
  }
);
Using gas sponsorship from other client SDKsThe sponsor: true parameter is currently supported in the React SDK and server-side SDKs (REST API, Node, Rust). For other client SDKs (React Native, Swift, Android, Flutter, Unity), you can achieve gas sponsorship by building the transaction in your client, then relaying it through your server with sponsor: true.
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

Transaction management

Learn how gas-sponsored transactions work and how to track transaction status with webhooks

Security best practices

Protect your application from gas sponsorship abuse with rate limiting and threat mitigation strategies