Install and Launch the Validator/Lightning node

Open a terminal to launch the private net. For the first time, follow the setup steps below.

$ cd $SCRIPT_HOME

$ cp -r ./integration/scriptnet ../scriptnet

$ mkdir ~/.scriptcli

$ chmod 700 ~/.scriptcli/

$ make install

And then, use the following command to launch a scriptnet . For this you can use tmux or any other tools to run your node service in the background.

/usr/local/go/bin/script start --config=../scriptnet/node

When the prompt asks for a password, enter your required password here.

*Note – { Your binary directory path } denotes path where script and scriptcli binary exist or created while running after make install command.

And then after run the following command to launch rpc of the node in another session.

/{ Your binary directory path }/scriptcli daemon start --port=16889

And to get the details of node for further process, run the below command -

cd { Your binary directory path }

/scriptcli query lightning

This command will give you following information about the node details which is needed for staking process to make node active

Example:

{ "Address": "0x8f3B...E819",

"BlsPubkey": "a1225b...16ebe",

"BlsPop": "b49fd2a...d025c",

"Signature": "14deb5e...52500",

"Summary": "0x8f3Bc...952500" }

  • Use Summary key data for the lightning staking from the web wallet.

  • Use Address key data for the validator staking from the web wallet.

*Note: Please keep the records safely as you need this info to reinstall the node and for withdrawal.

(A) Steps to stake and make Lightning node Active

  1. Copy summary from here and go to web wallet

2. Choose staking option and select lightning

3. Add copied node summary and stake value more than 10000 SCPT to make lightning active

(B) Steps to stake and make Lightning node Active

  1. Copy Address from here and go to web wallet

2. Choose staking option and select Validator

3. Add copied node address and stake value more than 5000000 to make validator active

Once done switch back to cli on node now you can see node is active and working on finalizing and verifying the blockchain

Use ./scriptcli query status to check syncing status and staking and balance

Same can be verify on explorer just copy address key and paste on explorer and now you can see staking value.

Last updated