Skip to content

Commit 53e09a3

Browse files
committed
update public key docs with tracker links and note about node address
1 parent 7f7ac05 commit 53e09a3

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

getting-started/how-to-run-a-validator-node/register-prep-node-public-key.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,26 @@ To verify if a PRep address has already registered a Public Key using the [goloo
1313
```bash
1414
goloop rpc call --to cx0000000000000000000000000000000000000000 \
1515
--method getPRepNodePublicKey \
16-
--param address=hxe45ef7de9eef0200a4090e57d6b92f40377eaea1 \
17-
--uri https://lisbon.net.solidwallet.io/api/v3
16+
--param address=hxfc56203484921c3b7a4dee9579d8614d8c8daaf5 \
17+
--uri https://ctz.solidwallet.io/api/v3
1818
```
19+
Replace the address with your prep address.
1920

2021
If the response emits `“null”`, you need to register the public key. If it emits a hex string value, thats the Public Key and no further action is required.
2122

23+
Alternatively you can use the tracker, click on the "Contract" tab, and find the `getPRepNodePublicKey` method. You should then enter your P-Rep's address.
24+
25+
Link: https://tracker.icon.community/contract/cx0000000000000000000000000000000000000000
26+
2227
### Generate Public Key
2328

2429
To generate the Public Key using the [goloop CLI](https://docs.icon.community/concepts/computational-utilities/goloop) you can use the `goloop ks pubkey` [command](https://github.com/icon-project/goloop/blob/master/doc/goloop_cli.md#goloop-ks-pubkey) command as shown in the following example:
2530

2631
```bash
2732
goloop ks pubkey -k KEYSTORE_FILE.json -p KEYSTORE_PASSWORD
2833
```
34+
> Note: If you are using a node address, use that keystore and password to generate the public address.
35+
2936
### Register Public Key
3037

3138
To register a public key we can use the goloop CLI to send a transaction calling the `registerPRepNodePublicKey` method of the chain contract as shown in the following example:
@@ -42,6 +49,8 @@ goloop rpc sendtx call --to cx0000000000000000000000000000000000000000 \
4249
--step_limit 0x30000
4350
```
4451

52+
Alternatively you can use the tracker. Use your prep address and the public key as the inputs to the transaction for the `registerPRepNodePublicKey` method.
53+
4554
## Using Javascript and curl
4655

4756
### Check if a Public Key exists

0 commit comments

Comments
 (0)