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

Gas sponsored RPC requests must be made from your API. To sponsor transactions that are initiated from a client SDK, you may relay the transaction from your server.As such, apps must use TEE execution in order to use our native gas sponsorship feature. Learn how to migrate here!
Gas sponsored transactions share the same path and interfaces as our other RPC requests. Learn more about sending transactions here. You must also include the sponsor: true parameter for transactions to be sponsored.
$ curl --request POST https://api.privy.io/v1/wallets/<wallet_id>/rpc \
  -u "<your-privy-app-id>:<your-privy-app-secret>" \
  -H "privy-app-id: <your-privy-app-id>" \
  -H "privy-authorization-signature: <authorization-signature-for-request>" \
  -H 'Content-Type: application/json' \
  -d '{
      "method": "eth_sendTransaction",
      "caip2": "eip155:1",
      "sponsor": true
      "params": {
          "transaction": {
              "to": "0xE3070d3e4309afA3bC9a6b057685743CF42da77C",
              "value": "0x2386F26FC10000",
          },
      },
  }'
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.