> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sponsor Gas Fees

> Cover transaction fees for your users to deliver a gasless experience

Gas sponsorship lets you cover the transaction fees (gas) for your users' blockchain interactions. By removing the need for users to hold native tokens for gas, you can reduce friction and improve conversion rates for both human users and AI agents interacting with your application.

By default, gas sponsorship is **enabled** for all wallets without writing any code.

Crossmint handles:

* Sponsoring the transaction fees on your behalf
* Maintaining a treasury to cover the gas costs
* Securely verifying and rate-limiting each transaction to prevent abuse
* Protecting against common attack vectors when sponsoring gas on chains like Solana
* Calculating optimal fees to ensure transactions land without overpaying

## Prerequisites

* A Crossmint project with wallets enabled
* Access to the <a href="https://staging.crossmint.com/console" target="_blank">Crossmint Console</a>

## Enable or Disable Gas Sponsorship

You can disable or re-enable gas sponsorship in the Console.

<Steps>
  <Step title="Navigate to Wallets Settings">
    Open the <a href="https://staging.crossmint.com/console" target="_blank">Crossmint Console</a> and go to **Wallets → Settings**.
  </Step>

  <Step title="Toggle gas sponsorship">
    Use the toggle to enable or disable gas sponsorship for your project.

    <img src="https://mintcdn.com/crossmint/wfEo4Py0D7KOM99v/images/wallets/gas-sponsorship.png?fit=max&auto=format&n=wfEo4Py0D7KOM99v&q=85&s=d077a2f9f192fc24e47428a708291aea" alt="Gas Sponsorship Settings" width="2752" height="592" data-path="images/wallets/gas-sponsorship.png" />
  </Step>
</Steps>

<Note>
  When using Solana as a chain, if you disable sponsorship, you can configure whether users pay gas in SOL or USDC.

  <img src="https://mintcdn.com/crossmint/wfEo4Py0D7KOM99v/images/wallets/gas-sponsorship-solana.png?fit=max&auto=format&n=wfEo4Py0D7KOM99v&q=85&s=838914254a0f6240752a6c65487ac3ed" alt="Gas Sponsorship Solana Options" width="2750" height="732" data-path="images/wallets/gas-sponsorship-solana.png" />
</Note>

## Set Spending Limits

<Note>
  Configuring per-user spending limits for gas sponsorship is available under private access. <a href="https://www.crossmint.com/contact/sales" target="_blank">Contact Crossmint</a> to enable this feature for your project.
</Note>

## Monitor Sponsored Transactions

You can track gas sponsorship usage and costs through the Crossmint Console and webhooks.

### View usage in the Console

The Crossmint Console provides an overview of your gas sponsorship usage, including total gas sponsored, number of transactions, and costs over time. Navigate to **Wallets → Settings** to view your current usage statistics.

### Track transactions with webhooks

For real-time monitoring, set up webhooks to receive notifications when transactions are sponsored. The `wallets.transfer.out` event includes information about the transaction and its gas costs.

```typescript theme={null}
// Partial type showing fields used in this example.
// See /wallets/guides/webhooks for the full schema.
type TransferWebhookEvent = {
    type: string;
    data: {
        status: string;
        recipient: { address: string };
        token: { amount: string; symbol: string };
        onChain: { explorerLink: string };
    };
};

async function processTransferEvent(
    event: TransferWebhookEvent
) {
    const { type, data } = event;

    if (
        type === "wallets.transfer.out" &&
        data.status === "succeeded"
    ) {
        console.log("Sponsored transaction completed:");
        console.log(`  To: ${data.recipient.address}`);
        console.log(`  Amount: ${data.token.amount} ${data.token.symbol}`);
        console.log(`  Explorer: ${data.onChain.explorerLink}`);
    }
}
```

For complete webhook setup instructions, see the [Transfer Webhooks Setup](/wallets/guides/monitor-transfers-webhooks) guide.

## Best Practices

* **Start with sponsorship enabled**: Gas sponsorship significantly improves user experience and conversion rates, especially for users new to blockchain
* **Monitor usage regularly**: Keep track of your gas sponsorship costs to ensure they align with your budget
* **Set appropriate limits**: Once spending limits are enabled for your project, configure them based on your expected user behavior to prevent abuse
* **Use webhooks for real-time tracking**: Set up webhooks to monitor sponsored transactions and detect any unusual patterns

## Learn More

<CardGroup cols={2}>
  <Card title="Transfer Webhooks Setup" icon="bell" href="/wallets/guides/monitor-transfers-webhooks">
    Set up real-time notifications for wallet transfers
  </Card>

  <Card title="Transfer Tokens" icon="paper-plane" href="/wallets/guides/transfer-tokens">
    Learn how to send tokens between wallets
  </Card>

  <Card title="Check Balances" icon="wallet" href="/wallets/guides/check-balances">
    Query token balances across your wallets
  </Card>

  <Card title="Webhooks Overview" icon="webhook" href="/introduction/platform/webhooks/overview">
    Learn about Crossmint webhooks
  </Card>
</CardGroup>
