Updated on 2024-05-10 GMT+08:00

Step 3: Start the Staking Node

Starting a staking node is to start a validator client using a key, gRPC endpoint, and TLS certificate.

Prerequisites

  • You have created a staking node.
  • You have created and obtained an API key.

Procedure

  1. On the NES console, choose Dedicated > Network Management.
  2. Click a node ID.

    Figure 1 Node ID

  3. Obtain the values of gRPC Endpoint and Node TLS Certificate.

    Figure 2 Node details

  4. Paste the key and TLS certificate to the hardware machine installed with the script. Run the following command to import the key to the keystore:

    ./prysm.sh validator accounts import --keys-dir=<YOUR_FOLDER_PATH> --< NETWORK >

    NETWORK is the staking network and YOUR_FOLDER_PATH is the actual key file path.

  5. After the key is imported, execute the prysm.sh file and configure the following parameters to start the staking node:

    • beacon-rpc-provider: the value of gRPC Endpoint
    • grpc-headers: the API key
    • tls-cert: the relative path of Node TLS Certificate

    For example:

    ./prysm.sh validator --beacon-rpc-provider=xx.xx.xx.xx:30002 --grpc-headers=credential=xxxxxxxxxxxxxxxxxxxxxx --tls-cert=ca.crt

    These parameters are mandatory for interconnecting Huawei Cloud nodes. Check the Prysm Documentation to learn other parameters.