Skip to content

UdotCASH/run-a-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uchain-node-tutorial

Instructions to run a uchain node.

Windows

Ubuntu

dev environment setup

install go

sudo apt update && wget https://golang.org/dl/go1.21.0.linux-amd64.tar.gz && sudo tar -C /usr/local -xzf go1.21.0.linux-amd64.tar.gz && echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.bashrc && source ~/.bashrc

go version

install build-essential and make

sudo apt install build-essential make -y

make scripts executable

chmod +x uchain.sh
chmod +x setup.sh

run setup.sh

./setup.sh

cd devnet

run node (temporary)

./geth --http --http.api eth,net,web3 --ws --ws.api eth,net,web3 --authrpc.jwtsecret jwt.hex --datadir gethdata --nodiscover --syncmode full
export PEER=/ip4/172.81.179.112/tcp/13000/p2p/16Uiu2HAmTKvLys4NksdMtex176kBXq5SmQGo5bwJjVVchjfoxBzL
./beacon-chain --datadir beacondata --min-sync-peers 1 --genesis-state genesis.ssz --bootstrap-node= --interop-eth1data-votes --chain-config-file config.yml --contract-deployment-block 0 --chain-id 32382 --accept-terms-of-use --jwt-secret jwt.hex --suggested-fee-recipient 0x123463a4B065722E99115D6c222f267d9cABb524 --minimum-peers-per-subnet 0 --enable-debug-rpc-endpoints --execution-endpoint gethdata/geth.ipc --peer=$PEER

run node

cd

./uchain.sh run geth 1

./uchain.sh run beacon 1

./uchain.sh run validator 1

enter geth console

geth attach http://localhost:8545

check block count

web3.eth.blockNumber

About

Instructions to run a uchain node.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages