> For the complete documentation index, see [llms.txt](https://docs.rei.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rei.network/rei-dao/guides/stake-for-free-gas.md).

# Stake for Free Gas

### Stake for free gas

{% tabs %}
{% tab title="UI" %}
Step1: Navigate to <https://dao.rei.network/#/stakeforgas>

Step2: Click on `GAS STAKE` button, enter the `address` and `amount` to stake

![](/files/dxIMzCiEx0dcH7s8K9pr)
{% endtab %}

{% tab title="Ethers" %}

```typescript
import { getDefaultProvider, Wallet } from "ethers";
import { Fee__factory } from "@rei-network/contracts";

const provider = getDefaultProvider("https://rpc-mainnet.rei.network");

const wallet = new Wallet("yourPrivateKey", provider);

const fee = Fee__factory.connect(
  "0x0000000000000000000000000000000000001005",
  wallet
);

fee
  .deposit("yourAddress", {
    value: "depositAmount",
  })
  .then(() => {
    // ...
  })
  .catch(() => {
    // ...
  });
```

{% endtab %}
{% endtabs %}

### Withdraw Gas Stakes

{% tabs %}
{% tab title="UI" %}
The staked `$REI` cannot be withdrawn within 3 days. After 3 days, `WITHDRAW` will be enabled.&#x20;

![](/files/A0FzCgBKyVmaH6BCRpUI)
{% endtab %}

{% tab title="Ethers" %}

```typescript
import { getDefaultProvider, Wallet } from "ethers";
import { Fee__factory } from "@rei-network/contracts";

const provider = getDefaultProvider("https://rpc-mainnet.rei.network");

const wallet = new Wallet("yourPrivateKey", provider);

const fee = Fee__factory.connect(
  "0x0000000000000000000000000000000000001005",
  wallet
);

fee
  .withdraw("yourAddress", "withdrawAmount")
  .then(() => {
    // ...
  })
  .catch(() => {
    // ...
  });
```

{% endtab %}
{% endtabs %}
