# Fee abstraction

{% hint style="info" %}
You can use the Feegrant module or Smart contract based fee abstraction to simplify the usage of your dApp as explained [here!](/secret-network-documentation/development/development-concepts/secret-contract-fundamentals/gas-fee-usage.md)
{% endhint %}

### FeeGrant

Secret also allows for Gas abstraction for users by leveraging the CosmosSDK [FeeGrant module](https://docs.cosmos.network/main/modules/feegrant). This module allows one to submit transactions where a different wallet is paying the gas fees as long as they granted you a budget to do that.

**Documentation** to create Feegrant functionality in your UI are [here](/secret-network-documentation/development/frontend/feegrant.md).\
\
This tool is widely used in different Secret UIs (for ex: [Secret dashboard](https://dash.scrt.network)) and there is a community run FeeGrant faucet available for dApps to use. - [Faucet](https://faucet.secretsaturn.net/) - [Code](https://github.com/SecretSaturn/feegrant-faucet)

### Smart contract based

You can use Smart-contracts with Fees deposited in them to abstract fee usage and automate tasks for users - An example of this is the [Sienna rewards contract ](https://github.com/SiennaNetwork/SiennaNetwork/tree/main)which deposits users rewards into their wallet daily.\
\
There is also the feature of **"opportunistic execution"** which allows additional privacy to perform automated actions by using leftover gas from the Gas evaporation function in the Secret compute module. - [Here is a great guide on opportunistic execution!](/secret-network-documentation/development/development-concepts/secret-contract-fundamentals/privacy-design/gas-evaporation-and-tracking.md#opportunistic-execution)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.scrt.network/secret-network-documentation/development/development-concepts/secret-contract-fundamentals/fee-abstraction.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
