For the complete documentation index, see llms.txt. This page is also available as Markdown.

Stake for Free Gas

Stake for free gas

Step1: Navigate to https://dao.rei.network/#/stakeforgas

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

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(() => {
    // ...
  });

Withdraw Gas Stakes

The staked $REI cannot be withdrawn within 3 days. After 3 days, WITHDRAW will be enabled.

Last updated