-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGuide
More file actions
205 lines (167 loc) · 4.4 KB
/
Copy pathGuide
File metadata and controls
205 lines (167 loc) · 4.4 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
# Haqq Installation Guide
## Hardware Requirements
### Recommended Hardware Requirements
- 4x CPU; the higher the clock speed the better
- 8GB of RAM
- 200 GB storage (SSD or NVME)
- Persistent Internet connection (traffic will be minimum 10Mbps during testnet - at least 100Mbps expected for production)
## Haqq Full Node Installation Steps
### Automatic Installation with a Single Script
You can set up your Haqq fullnode in a few minutes using the automated script below.
You will be asked for your node name (NODENAME) during the script!
```
wget -O HAQ.sh https://raw.githubusercontent.com/sinirlibiber/Haqq-Network/main/HAQQ && chmod +x HAQ.sh && ./HAQ.sh
```
### Post-Installation Steps
You should make sure your validator syncs blocks.
You can use the following command to check the sync status.
```
haqqd status 2>&1 | jq .SyncInfo
```
### Creating a Wallet
You can use the following command to create a new wallet. Do not forget to save the reminder (mnemonic).
```
haqqd keys add $HAQQ_WALLET
```
(OPTIONAL) To recover your wallet using mnemonic:
```
haqqd keys add $HAQQ_WALLET --recover
```
To get the current wallet list:
```
haqqd keys list
```
### Save Wallet Information
Add Wallet Address:
```
HAQQ_WALLET_ADDRESS=$(haqqd keys show $HAQQ_WALLET -a)
HAQQ_VALOPER_ADDRESS=$(haqqd keys show $HAQQ_WALLET --bech val -a)
echo 'export HAQQ_WALLET_ADDRESS='${HAQQ_WALLET_ADDRESS} >> $HOME/.bash_profile
echo 'export HAQQ_VALOPER_ADDRESS='${HAQQ_VALOPER_ADDRESS} >> $HOME/.bash_profile
source $HOME/.bash_profile
```
### Create validator
Before creating a validator please make sure you have at least 1 ISLM (1 ISLM equals 1000000 aISLM) and your node is in sync.
To check your wallet balance:
```
haqqd query bank balances $HAQQ_WALLET_ADDRESS
```
> If you can't see your balance in your wallet, chances are your node is still syncing. Please wait for the sync to finish and then continue.
Creating a Validator:
```
haqqd tx staking create-validator \
--amount 1000000aISLM \
--from $HAQQ_WALLET \
--commission-max-change-rate "0.01" \
--commission-max-rate "0.2" \
--commission-rate "0.07" \
--min-self-delegation "1" \
--pubkey $(haqqd tendermint show-validator) \
--moniker $HAQQ_NODENAME \
--chain-id $HAQQ_ID \
--fees 250aISLM
```
## Useful Commands
### Service Management
Check Logs:
```
journalctl -fu haqqd -o cat
```
Start Service:
```
systemctl start haqqd
```
Stop Service:
```
systemctl stop haqqd
```
Restart Service:
```
systemctl restart haqqd
```
### Node Information
Sync Information:
```
haqqd status 2>&1 | jq .SyncInfo
```
Validator Information:
```
haqqd status 2>&1 | jq .ValidatorInfo
```
Node Information:
```
haqqd status 2>&1 | jq .NodeInfo
```
Show Node ID:
```
haqqd tendermint show-node-id
```
### Wallet Transactions
List Wallets:
```
haqqd keys list
```
Recover wallet using Mnemonic:
```
haqqd keys add $HAQQ_WALLET --recover
```
Wallet Delete:
```
haqqd keys delete $HAQQ_WALLET
```
Show Wallet Balance:
```
haqqd query bank balances $HAQQ_WALLET_ADDRESS
```
Cüzdandan Cüzdana Bakiye Transferi:
```
haqqd tx bank send $HAQQ_WALLET_ADDRESS <TO_WALLET_ADDRESS> 10000000aISLM
```
### Voting
```
haqqd tx gov vote 1 yes --from $HAQQ_WALLET --chain-id=$HAQQ_ID
```
### Stake, Delegation and Rewards
Delegate Process:
```
haqqd tx staking delegate $HAQQ_VALOPER_ADDRESS 10000000aISLM --from=$HAQQ_WALLET --chain-id=$HAQQ_ID --fees 250aISLM
```
Redelegate from validator to another validator:
```
haqqd tx staking redelegate <srcValidatorAddress> <destValidatorAddress> 10000000aISLM --from=$HAQQ_WALLET --chain-id=$HAQQ_ID --fees 250aISLM
```
Withdraw all rewards:
```
haqqd tx distribution withdraw-all-rewards --from=$HAQQ_WALLET --chain-id=$HAQQ_ID --gas=auto --fees 250aISLM
```
Withdraw rewards with commission:
```
haqqd tx distribution withdraw-rewards $HAQQ_VALOPER_ADDRESS --from=$HAQQ_WALLET --commission --chain-id=$HAQQ_ID
```
### Validator Management
Change Validator Name:
```
haqqd tx staking edit-validator \
--moniker=NEWNODENAME \
--chain-id=$HAQQ_ID \
--from=$HAQQ_WALLET
```
Get Out Of Jail(Unjail):
```
haqqd tx slashing unjail \
--broadcast-mode=block \
--from=$HAQQ_WALLET \
--chain-id=$HAQQ_ID \
--gas=auto \
--fees 250aISLM
```
To Delete Node Completely:
```
sudo systemctl stop haqqd
sudo systemctl disable haqqd
sudo rm /etc/systemd/system/haqqd* -rf
sudo rm $(which haqqd) -rf
sudo rm $HOME/.haqqd* -rf
sudo rm $HOME/haqq -rf
sed -i '/HAQQ_/d' ~/.bash_profile
```