Klever Finance
Search…
How to run a node
Commands to run a node
If you're on Linux or Mac, the next instructions should be easy. Don't forget to have Docker installed and configured on your machine before you set your node up.

Download Klever node:

1
docker pull kleverapp/klever-go-testnet:latest
Copied!

Create statics directory:

1
mkdir -p $(pwd)/klv $(pwd)/klv/db $(pwd)/klv/logs
Copied!

Create your validator KeyPair:

1
docker run -it --rm -v $(pwd)/klv:/opt/klever-blockchain \
2
--user "$(id -u):$(id -g)" \
3
--entrypoint='' kleverapp/klever-go-testnet:latest keygenerator
Copied!

Download and extract data backup for fast spin:

1
curl -k -s https://backup.testnet.klever.finance/kleverchain.latest.tar.gz | tar -xz -C ./klv
Copied!

Run your node:

1
docker run -it --rm \
2
--user "$(id -u):$(id -g)" \
3
--name klever-node \
4
-v $(pwd)/klv/validatorKey.pem:/opt/klever-blockchain/validatorKey.pem \
5
-v $(pwd)/klv/db:/opt/klever-blockchain/db \
6
-v $(pwd)/klv/logs:/opt/klever-blockchain/logs \
7
-p 8080:8080 \
8
--expose=37373-38383 \
9
--entrypoint /usr/local/bin/validator \
10
kleverapp/klever-go-testnet:latest \
11
"--validator-key-pem-file=./validatorKey.pem"
Copied!
When you are done setting up and running your node, you are expected to see information about your node, the blockchain itself, as well as data from your own computer, just like the example below:
A node running
Last modified 1mo ago
Copy link
Contents