- Notifications
You must be signed in to change notification settings - Fork85
nervosnetwork/neuron
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Nervos CKB Full-Node Desktop Wallet
You will neednode >= 18.12.0
andyarn >= 1.14
to build and run Neuron.
This project useslerna for package management.
$ yarn global add lerna# install lerna globally
Notes:
After lerna has been installed, run this to install and link dependencies:
$ yarn$ lerna run rebuild:nativemodules
CKB Indexer is a service to create cell and transaction indexes.
DownloadCKB Indexer and move the binary intopackages/neuron-wallet/bin/{win/linux/mac}/
.
As ofv0.26.0
, Neuron bundles a CKB binary and starts it for Mainnet automatically. If you prefer to run a local CKB node yourself instead, please follow theNervos CKB doc to get it up and running before launching Neuron.
Note: If you run CKB node on Windows but it fails to start, you may need to download and install the latestMicrosoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019.
$ ./scripts/download-ckb.sh# Download CKB binary for your platform. Neuron will starts it automatically.$ yarn start
This command startsneuron-ui
, the React UI layer andneuron-wallet
, the core wallet layer.
You can also start them independently:
# start neuron-ui at `http://localhost:3000`$ yarn start:ui
# start neuron-wallet$ yarn start:wallet
If you want to develop with devnet, replace the testnet script with the dev script in thepackages/neuron-wallet/.env
file.
Here is a script env example, it is constructed by network、script name and filed name.
TESTNET_SUDT_DEP_TXHASH=0xe12877ebd2c3c364dc46c5c992bcfaf4fee33fa13eebdf82c591fc9825aab769TESTNET_SUDT_DEP_INDEX=0TESTNET_SUDT_DEP_TYPE=codeTESTNET_SUDT_SCRIPT_CODEHASH=0xc5e5dcf215925f7ef4dfaf5f4b4f105bc321c02776d6e7d52a1db3fcd9d011a4TESTNET_SUDT_SCRIPT_HASHTYPE=type
$ yarntest
If you don't want to bother building from source, you can download a binary fromreleases. We offer pre-built binaries for Windows, Linux and macOS.
Neuron is released under the terms of the MIT license. SeeCOPYING for more information or seehttps://opensource.org/licenses/MIT.
About
Neuron: Nervos CKB Wallet