Running the node
Last updated
Last updated
The distribution package includes:
humanode-peer
- the to launch the humanode peer.
chain-spec
- the collection of information that describes a Substrate-based blockchain network. Check to get more details.
ngrok-wrapper
- a tool that enables a proper ports forwarding in NAT (and ngrok
-like tunnel) to connect to your node's RPC endpoint from a handheld device (i.e. phone).
Generate your bioauth key, the one that is used for enrolment and authentication.
Copy the secret phrase and import it into keystore.
Where:
--key-type kbai
- bioauth key type used in the Humanode networks.
--suri "$SECRET_PHRASE"
- your secret phrase (i.e. mnemonic) from the previous command.
--chain chainspec.json
- path to the Humanode chain specification file.
The humanode peer uses 9944
RPC endpoint by default. You are free to use any of your choices. But don't forget to explicitly specify the same port during the peer run in case using a different one from 9944
.
Run the tunnel using ngrok-wrapper
There are 2 options to run it:
Using --rpc-url-ngrok-detect
subcommand to automatically detect RPC URL from ngrok-wrapper
that you have already launched before.
You can manually specify RPC URL from ngrok-wrapper
output console.
Where:
--name "$NAME"
- where $NAME
is your Humanode peer name.
--validator
- means that you join the network as a block producer.
--chain chainspec.json
- a path to the file that contains Humanode chain specification.
--rpc-url "$RPC_URL"
- the peer's RPC URL, where $RPC_URL
is the URL that you noted at the ngrok-wrapper
configuration step, or your own URL if you're not using ngrok-wrapper
.
--rpc-url-ngrok-detect
- to detect peer's RPC URL automatically from ngrok-wrapper
(mutually exclusive with --rpc-url
).