Skip to content

Instantly share code, notes, and snippets.

@gus4rs
Last active July 11, 2024 15:58
Show Gist options
  • Save gus4rs/18e00a1249778b8bbbb71c3efe586ff1 to your computer and use it in GitHub Desktop.
Save gus4rs/18e00a1249778b8bbbb71c3efe586ff1 to your computer and use it in GitHub Desktop.
Create a validator on Holesky without the Launchpad

⚠️ Do not do this for mainnet, this is a quick and insecure procedure that it's fine for Testnet only

  1. Download and install https://github.com/wealdtech/ethdo and https://github.com/ethereum/staking-deposit-cli
  2. Connect your Metamask to Holesky and generate a new address
  3. Use the address to get some 33 HolETH from https://holesky-faucet.pk910.de/
  4. Generate a new keystore for your validator using the staking-deposit-cli tool. Replace 0xADDR by your metamask address
./deposit.sh new-mnemonic --chain holesky --execution_address 0xADDR --num_validators 1

You will need to enter a password and you will get a mnemonic phrase. They will be referred as PASSWD and MNEM from now on

  1. Import the wallet in ethdo:
ethdo wallet create --type hd --mnemonic "MNEM" --wallet-passphrase "PASSWD" --wallet wallet
  1. Create the validator account in ethdo
ethdo account create --account wallet/validating-0 --path m/12381/3600/0/0/0 --wallet-passphrase "PASSWD" --passphrase "PASSWD"
  1. Create the deposit data:
ethdo validator depositdata --validatoraccount wallet/validating-0 --depositvalue 32Ether --passphrase "PASSWD" --forkversion 0x01017000 --withdrawaladdress "0xADDR" --raw
  1. Execute the transaction in Metamask

Check "Show hex data" in Settings -> Advanced

Create a new Send transaction in Metamask:

  • Destination: 0x4242424242424242424242424242424242424242 which is the Holesky deposit contract
  • Amount: 32 ETH
  • Hex Data: 0x... (extract it from output of step 7. Only copy the number starting with 0x)
  1. Import the validators into Nimbus
cd /path/to/staking-deposit-cli
/path/to/nimbus-beacon deposits import --data-dir=/path/to/nimbus/data/
  1. Wait for 1 epoch (6 minutes) and check your validator at https://holesky.beaconcha.in/validator/PUBKEY

replace PUBKEY with the value obtained from:

ethdo account info --account wallet/validating-0
@yagolgmesol
Copy link

can i ask holesky for help around 9600 holesky for
test validator creation and funding using custom made smart contract?

@JamesSmartCell
Copy link

can i ask holesky for help around 9600 holesky for test validator creation and funding using custom made smart contract?

Did you have any success?

@yagolgmesol
Copy link

yagolgmesol commented Nov 7, 2023 via email

@yagolgmesol
Copy link

yagolgmesol commented Jul 11, 2024 via email

@yagolgmesol
Copy link

yagolgmesol commented Jul 11, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment