GEB Docs
  • Quick Start
  • GEB Consensus
    • Mother Consensus
    • Sub Consensus(Agere)
  • Learn
    • BitAgere Guide
      • Auditor Reference Concepts
      • Executor Reference Concepts
  • Build
    • Validator
      • Wasm Operation
      • L-BTC Validator Operation
    • BitAgere
      • RelayAgere
      • Agere Auditor
      • Agere Executor
  • Use
    • Wasm Wallet
    • Earn $GEB
      • Stake L-BTC
        • What is L-BTC?
        • Download and Run LND Desk
        • Config LND
        • Node Asset Management
          • Open Channel(Get L-BTC)
          • L-BTC ⇌ BTC (on GEB chain)
        • Stake L-BTC Earn $GEB
      • Stake GEB on Agere
    • Earn $BTC
      • Claim and Other Operations
      • Transfer BTC to EVM
    • Bridge
      • Official Bridge
        • BEVM Mainnet
        • BEVM Canary
      • Third-Party Bridge
        • BEVM Mainnet
          • Swap from EVM to BEVM Mainnet
        • BEVM Canary
          • Swap from EVM to BEVM Canary
          • Other assets
            • Bridge PCX from BEVM Canary to Chainx
      • Transfer(EVM<-->Wasm)
  • EVM Development
    • Fee Calculation
      • GEB Mainnet
      • BEVM Canary
    • Smart Contract
      • Write a Contract
        • Set Up the Metamask Configuration
        • Deploy Smart Contract on GEB Signet
        • Deploy Smart Contract on BEVM Canary
      • Foundry
        • Deploy and verify contract by Foundry
      • Contract Verification (BlockScout)
      • ThirdWeb
    • Integrations
      • Oracle
        • Supra
        • DIA
      • Indexer
        • SubQuery
      • Account Abstraction
        • Particle Network
    • Libraries
      • ethereum-list/chains
      • Wagmi
      • Multicall3
    • Canonical contracts
    • Finality
  • Tokenomics
  • The Journy of GEB
  • Audit Reports
  • Community
Powered by GitBook
On this page
  • Transfer GEB from EVM to Wasm
  • Executor Overview
  • Quick Join RelayAgere
  • Preparation Work
  • Run an Executor Progarm
  • Close Program
  • Claiming Rewards
  1. Build
  2. BitAgere

Agere Executor

PreviousAgere AuditorNextUse

Last updated 2 months ago

Transfer GEB from EVM to Wasm

Executor Overview

Quick Join RelayAgere

Recommended System: Ubuntu 22.04 LTS +

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.

You need to import both your cold wallet and hot wallet into the GEB Wallet for easier subsequent operations.

5

Register to the agere

Please GEB token larger than register fee (at least 10 tokens ) to your cold wallet to register and join the agere.

./register.sh <cold_wallet_name>

Run an Executor Progarm

Before running the program, you need to deposit some tokens to your hot address as transaction fees so the program can send transactions normally.

Query your wallet balance

./get_balance.sh <cold_wallet_name>

Running as an Executor

1

Edit the .env file according to your RPC type

For Node RPC:

  • Set BTC_RPC_USER

  • Set BTC_RPC_PASSWORD

  • Set BTC_RPC_ENDPOINT (IP:Port )

For ANKR RPC:

  • Set ANKR_API_KEY

For Mempool RPC:

  • No configuration needed

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=""

The endpoint does not need to include the HTTP or HTTPS protocol.

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

Transfer(EVM<-->Wasm)
RelayAgere
deposit