Skip to content

QuickStart

cfxdevkit edited this page Dec 19, 2024 · 3 revisions

Running a Local Conflux Node for Development

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.


Customizing the Keystore and Configuration

If you need to change the default keystore or configuration, follow these steps:

Step 1: Create a Volume

Create a Docker volume to persist the keystore:

docker volume create devkit-keystore

Step 2: Add a New Mnemonic

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

Step 3: Select the Mnemonic

Activate the newly added mnemonic by selecting it:

docker run --rm -it -v devkit-keystore:/home/ubuntu cfxdevkit/devkit-cli:latest wallet select

Step 4: Start the Node

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