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.
Before enabling gas sponsorship in production, review the security best practices to help prevent abuse and protect gas balances.

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.
On-chain signature verification operations such as Permit2 and TransferWithAuthorization are supported for EIP-7702 upgraded wallets via ERC-1271 signing. Learn how to enable this in the ERC-1271 signatures guide.

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