-
Notifications
You must be signed in to change notification settings - Fork 0
QuickStart
If you're looking for a quick way to run a local Conflux node for development, you can use the following command:
docker run -it -p 12537:12537 -p 8545:8545 --rm cfxdevkit/devkit-cli:latest
This command starts a local node with the default mnemonic:
test test test test test test test test test test test junk
⚠️ Warning: The default mnemonic is publicly known. Any funds transferred using this mnemonic on a public chain will be at risk of being stolen or permanently lost. Use it only for development and testing purposes on local networks.
Once the node is running, you can fund any wallet by using the faucet with the key f.
If you need to change the default keystore or configuration, follow these steps:
Create a Docker volume to persist the keystore:
docker volume create devkit-keystore
Run the container with the created volume and add a new mnemonic:
docker run --rm -it -v devkit-keystore:/home/ubuntu cfxdevkit/devkit-cli:latest wallet add
Activate the newly added mnemonic by selecting it:
docker run --rm -it -v devkit-keystore:/home/ubuntu cfxdevkit/devkit-cli:latest wallet select
Now you can start the node with your personal mnemonic. The first 10 accounts for Core and eSpace will be funded with 10k CFX:
docker run --rm -it -v devkit-keystore:/home/ubuntu cfxdevkit/devkit-cli:latest
With these steps, your Conflux node is ready to use with a custom mnemonic and keystore!
In the Commands page you can find the available parameters and their description