The NeuronNervos CKB Full-Node Desktop Wallet is a powerful tool for managing your Nervos CKB funds. This guide will walk you through the process of setting up Neuron, including the prerequisites, installation, and starting the wallet. Whether you’re a developer or just looking to use the wallet, we’ve got you covered!
Quick Start
Before diving in, ensure you have the necessary software installed. Here’s what you need:
Prerequisites
- Node.js version: 18.12.0
- Yarn version: 1.14
Install Lerna
This project utilizes lerna for package management. To install Lerna globally, run the following command:
shell$ yarn global add lerna # install lerna globally
Install Dependencies
After installing Lerna, you need to set up the dependencies. If you’re operating behind a proxy or facing slow downloads, you may want to configure your network settings accordingly:
Once done, run the following commands:
shell$ yarn$ lerna run rebuild:nativemodules
Add CKB Indexer
CKB Indexer is essential to create cell and transaction indexes. Download CKB Indexer and move the binary into packages/neuron-wallet/bin/win/linux/mac
.
Start Neuron
Starting from version 0.26.0, Neuron bundles a CKB binary and launches it automatically for Mainnet. If you wish to run a local CKB node, follow the guidelines in the Nervos CKB documentation to set it up prior to launching Neuron.
Note: If you run into issues starting the CKB node on Windows, ensure you have the latest Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017, and 2019.
Start Neuron in Development Mode
To start with the CKB binary for your platform, use:
shell$ .scripts/download-ckb.sh # Download CKB binary
Then run:
$ yarn start
This command will launch the UI layer (neuron-ui) and the core wallet layer (neuron-wallet). If you prefer to start them individually, use:
# start neuron-ui at http://localhost:3000
$ yarn start:ui
# start neuron-wallet
$ yarn start:wallet
Environment Configuration
To develop with the devnet, adjust the script in the packages/neuron-wallet/.env
file to the dev script. For example:
TESTNET_SUDT_DEP_TXHASH=0xe12877ebd2c3c364dc46c5c992bcfaf4fee33fa13eebdf82c591fc9825aab769
TESTNET_SUDT_DEP_INDEX=0
TESTNET_SUDT_DEP_TYPE=code
TESTNET_SUDT_SCRIPT_CODEHASH=0xc5e5dcf215925f7ef4dfaf5f4b4f105bc321c02776d6e7d52a1db3fcd9d011a4
TESTNET_SUDT_SCRIPT_HASHTYPE=type
Testing Neuron
To run the tests, simply execute:
shell$ yarn test
Download Neuron Binary
If you prefer not to build from source, you can easily download the pre-built binary from releases available for Windows, Linux, and macOS.
License
Neuron is distributed under the MIT license. For further information, see the COPYING
file or visit Open Source Initiative.
Troubleshooting
If you encounter issues during installation or running the Neuron wallet, consider the following troubleshooting steps:
- Ensure that your Node.js and Yarn versions are compatible and up to date.
- Review the proxy and CDN settings, especially if you’re experiencing slow downloads.
- For Windows users, double-check the installation of Microsoft Visual C++ Redistributable.
- Check your environment configuration for any discrepancies.
For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.