-
Notifications
You must be signed in to change notification settings - Fork 30
/
deposit.sh
43 lines (37 loc) · 1.69 KB
/
deposit.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
echo "
░█▀▀█ ─█▀▀█ ░█▀▀█ ▀▀█▀▀ ░█▀▀▀ ░█▄─░█ ░█▀▀▀█ ░█▀▀▄ ░█▀▀▀ ░█▀▀█ ░█▀▀▀█ ░█▀▀▀█ ▀█▀ ▀▀█▀▀
░█─── ░█▄▄█ ░█▄▄▀ ─░█── ░█▀▀▀ ░█░█░█ ─▄▄▄▀▀ ░█─░█ ░█▀▀▀ ░█▄▄█ ░█──░█ ─▀▀▀▄▄ ░█─ ─░█──
░█▄▄█ ░█─░█ ░█─░█ ─░█── ░█▄▄▄ ░█──▀█ ░█▄▄▄█ ░█▄▄▀ ░█▄▄▄ ░█─── ░█▄▄▄█ ░█▄▄▄█ ▄█▄ ─░█──"
amount=32000000000
smin=
smax=
# generate mnemonic using (eth2-val-tools mnemonic and paste here)
wmnemonic=
vmnemonic=
# they should start with 0x.
address=
privkey=
eth2-val-tools deposit-data \
--amount=$amount \
--fork-version=0x00677693 \
--source-min=$smin \
--source-max=$smax \
--withdrawals-mnemonic="$wmnemonic" \
--validators-mnemonic="$vmnemonic" > cartenz_deposits_$smin\_$smax.txt
while read x; do
account_name="$(echo "$x" | jq '.account')"
pubkey="$(echo "$x" | jq '.pubkey')"
echo "Sending deposit for validator $account_name $pubkey"
ethereal beacon deposit \
--allow-unknown-contract=true \
--address="0x4242424242424242424242424242424242424242" \
--connection=https://rpc-phase1.cartenz.works \
--data="$x" \
--allow-excessive-deposit \
--value="$amount" \
--from="$address" \
--privatekey="$privkey"
echo "Sent deposit for your validator $account_name $pubkey"
sleep 2
done < cartenz_deposits_$smin\_$smax.txt