Agere Executor

Transfer GEB from EVM to Wasm

Transfer(EVM<-->Wasm)

Executor Overview

RelayAgere

Quick Join RelayAgere

Preparation Work

1

Clone the repository

git clone https://github.com/GEBcore/RelayAgere.git && cd RelayAgere
2

Install the dependencies

bash install.sh
3

Activate the virtual environment

source .venv/bin/activate
4

Create Wallet

./wallet.sh <cold_wallet_name>

If you choose to create wallets, there will generate two wallets: a cold wallet and a hot wallet. In the current script, the cold wallet is associated with the hot wallet automatically. The following operations will require using the name of the cold wallet. Both the cold and hot wallets are very important, and you need to securely save the wallet's mnemonic phrase to prevent loss.

5

Register to the agere

./register.sh <cold_wallet_name>

Run an Executor Progarm

Query your wallet balance

./get_balance.sh <cold_wallet_name>

Running as an Executor

1

Edit the .env file according to your RPC type

Method 1: Copy the .env file, and enter the .env file to modify the corresponding parameters.

cp .env.example .env

Method 2: Directly export the corresponding parameters to the environment variables (Note: Re-running the program requires re-importing).

For Node RPC:

export BTC_RPC_USER=""
export BTC_RPC_PASSWORD=""
export BTC_RPC_ENDPOINT=""

For ANKR RPC:

export ANKR_API_KEY=""
2

Run the executor program

./executor.sh [-d] [-t tip_value] [-r rpc_type] <cold_wallet_name>

Here are some options for more funtions:

Options:
  -d          Run in daemon mode (background)
  -t value    Specify tip value (default: 0) (may increase the chance of executing a transaction)
  -r type     Bitcoin RPC type (node/mempool/ankr, default: mempool)
3

Check executor status

Once you have submitted a transaction successfully, your executor status will become "active".

Close Program

./close.sh

Claiming Rewards

Except for agere creators, other users' BitAgere incentives are stored in stakes and need to be unstaked to receive actual tokens.

Using scripts to unstake

./stake.sh remove <cold_wallet_name>

Unstaking via BEVM Wallet

Router: Agere->User Dashboard->Agere Participants->Unstake

Last updated