How to run full node
Fullnodes Functions
Stores the full blockchain history on disk and can answer the data request from the network.
Receives and validates the new blocks and transactions.
Verifies the states of every account.
Supported Platforms
We support running a full node on Linux.
Hardware Recommendation
Directly facing internet
16 cores CPU
32GB of RAM
SSD storage
If you are running a node in Testnet, 2CPU/8GB of RAM is sufficient.
Steps to Run a Fullnode
Prepare junca client software
Build from source code¶
Create new directory for the project
Download source code and build
Checkout the latest version (e.g v0.2.0)
Build the project
Binary file should be generated in build folder
$GOPATH/src/github.com/juncachain/juncachain/build/bin
Download JuncaChain binary from Github release page
Download junca binary from our releases page (e.g v0.2.0)
Download genesis block
$GENESIS_PATH : location of genesis file you would like to put
Testnet
Mainnet
Create datadir
create a folder to store juncachain data on your machine
Initialize the chain from genesis
Initialize / Import accounts for the nodes's keystore
If you already had an existing account, import it. Otherwise, please initialize new accounts
Initialize new accounts
Import accounts
List all available accounts in keystore folder
Start a node
Environment variables
$IDENTITY: the name of your node
$PASSWORD: the password file to unlock your account
$YOUR_COINBASE_ADDRESS: address of your account which generated in the previous step
$NETWORK_ID: the networkId. Mainnet: 668. Testnet: 669
Let's start a node
If you are a dapp developer, you should open RPC and WS apis:
Last updated