# Sponsor transactions

One of the biggest UX enhancements unlocked by smart accounts is the ability for app developers to sponsor their users' transactions. If your ecosystem has a gas sponsorship enabled, you can start sponsoring your user's transactions by using the `policy` parameter with your gas sponsorship ID from the [dashboard](https://dashboard.openfort.io/policies).

:::warning
To make these instructions concrete, we have created a sample global wallet called **Rapidfire ID**. To interact with it, you can find its SDK in the NPM package directory: [@rapidfire/id](https://www.npmjs.com/package/@rapidfire/id).

You can check out the GitHub [repository for Rapidfire Wallet](https://github.com/openfort-xyz/ecosystem-sample) to learn how to create your own wallet.
:::

## Use a gas sponsorship when injecting your provider

Sponsor all transactions that will be made with the injected provider.

:::code-group
```tsx [app.tsx]
import { sdk } from './sdk'

function App() {
  useEffect(() => {
    sdk.getEthereumProvider({policy: 'pol_...'});
  }, []);
  return (
    <div/>
  )
}
```

```ts [sdk.ts]
import EcosystemWallet from '@rapidfire/id'

// Initialize the SDK with required parameters
export const sdk = new EcosystemWallet({
  appChainIds: [80002],
  appLogoUrl: 'https://a.rgbimg.com/users/b/ba/barunpatro/600/mf6B5Gq.jpg',
  appName: 'Example App',
});
```
:::

## Updating the gas sponsorship

Updating your gas sponsorship is useful if you change chain and need to specify a different gas sponsorship ID.

:::code-group
```tsx [app.tsx]
import { sdk } from './sdk'

function App() {
  useEffect(() => {
    sdk.setPolicy({policy: 'pol_...'});
  }, []);
  return (
    <div/>
  )
}
```

```ts [sdk.ts]
import EcosystemWallet from '@rapidfire/id'

// Initialize the SDK with required parameters
export const sdk = new EcosystemWallet({
  appChainIds: [80002],
  appLogoUrl: 'https://a.rgbimg.com/users/b/ba/barunpatro/600/mf6B5Gq.jpg',
  appName: 'Example App',
});
```
:::

***

You can also configure your own app level gas sponsorship. Check the details in the [dashboard section](/docs/configuration/gas-sponsorship).

* Using an [**external paymaster** setup.](/docs/configuration/gas-sponsorship#optional-using-external-paymasters)

* Learn how to [use **erc20 tokens**](/docs/configuration/gas-erc20) to pay for gas fees.
