A simple script for depositing JBC funds to all validators in the deposit data file.
- Generate a
new private key
for thehot wallet
and transferJBC
to this wallet for the deposit of all validators. - Generate validator keys and
deposit_data-xxxxxx.json
usingdeposit-cli
(read docs).
- Make an environment file
make env
- Update
.env
file
# Replace ${PRIVATE_KEY} with private key
PRIVATE_KEY=${PRIVATE_KEY}
# Update deposit data file path
DEPOSIT_DATA_FILE=./deposit_data-xxxxxx.json
# Gas price for all txs (Gwei)
GAS_PRICE=5
- Install dependencies
yarn install
- Run verify to pre-check the correctness
deposit data file
yarn verify
- Run deposit
yarn deposit