Skip to content

OpenFusionist/staking-deposit-cli

 
 

Repository files navigation

staking-deposit-cli

Important

This CLI tool is a forked version specifically for Endurance Network. You can choose the mainnet as a parameter for use with Endurance.

Clone the repository and navigate into the directory

git clone https://github.com/OpenFusionist/staking-deposit-cli
cd staking-deposit-cli

Build deposit-cli with virtualenv

Step 0. Python version checking

Ensure you are using Python version >= Python3.12:

python3 -V
Step 1. Installation

For the virtualenv users, you can create a new venv:

pip3 install virtualenv
python3 -m virtualenv venv
source venv/bin/activate

and install the dependencies:

python3 setup.py install
pip3 install -r requirements.txt
Step 2. Create keys and deposit_data-*.json

Run one of the following command to enter the interactive CLI:

python3 ./staking_deposit/deposit.py new-mnemonic

or

python3 ./staking_deposit/deposit.py existing-mnemonic

You can also run the tool with optional arguments:

python3 ./staking_deposit/deposit.py new-mnemonic --num_validators=<NUM_VALIDATORS> --mnemonic_language=english --chain=mainnet --folder=<YOUR_FOLDER_PATH> --execution_address=<YOUR_WITHDRAW_ADDRESS>
python3 ./staking_deposit/deposit.py existing-mnemonic --num_validators=<NUM_VALIDATORS> --validator_start_index=<START_INDEX> --chain=mainnet --folder=<YOUR_FOLDER_PATH> --execution_address=<YOUR_WITHDRAW_ADDRESS>

About

Secure key generation for deposits

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.9%
  • Makefile 1.3%
  • Other 0.8%