Run a Full Node
Last updated
mkdir -p kub-node && cd kub-nodewget https://raw.githubusercontent.com/kub-chain/bkc-node/main/mainnet/genesis.json
wget https://raw.githubusercontent.com/kub-chain/bkc-node/main/mainnet/config.tomlwget https://raw.githubusercontent.com/kub-chain/bkc-node/main/testnet/genesis.json
wget https://raw.githubusercontent.com/kub-chain/bkc-node/main/testnet/config.tomwget https://github.com/kub-chain/bkc/releases/download/v2.4.0-bkc/geth2.4.0.linux-amd64.tar.gztar -xvf geth2.4.0.linux-amd64.tar.gzecho "YourPassword" > ./password.sec./geth --datadir ./data account new --password ./password.sec./geth --datadir ./data init ./genesis.json./geth --datadir ./data \
--config ./config.toml --password ./password.sec \
--syncmode snap \
--mine \
--unlock 0xYourPublicAddress --allow-insecure-unlock