> For the complete documentation index, see [llms.txt](https://docs.validator247.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.validator247.com/testnet/rpc-node-0g_lab.md).

# RPC Node 0G\_Lab

**Public Endpoints**

> RPC cosmos <https://0g-galileo-testnet-rpc.validator247.com>
>
> API <https://0g-galileo-testnet-api.validator247.com>
>
> RPC EVM <https://galileo-evm-rpc.validator247.com>
>
> &#x20;WSS wss\://galileo-evm-ws.validator247.com &#x20;

## Download Package

```
wget -O galileo.tar.gz https://github.com/0glabs/0gchain-NG/releases/download/v1.1.1/galileo-v1.1.1.tar.gz

```

## Extract Package

```
tar -xzvf galileo.tar.gz -C ~
```

## Copy Files and Set Permissions

```
cd ~/galileo
cp -r 0g-home ~/galileo/0g-home  

sudo chmod 777 ./bin/geth
sudo chmod 777 ./bin/0gchaind
```

## Initialize Geth

```
./bin/geth init --datadir ~/galileo/0g-home/geth-home ./genesis.json

```

## Initialize 0gchaind with Temporary Directory

```
./bin/0gchaind init <your-node-name> --home ~/galileo/tmp

```

## Copy Node Files to 0gchaind Home

```
cp ~/galileo/tmp/data/priv_validator_state.json ~/galileo/0g-home/0gchaind-home/data/
cp ~/galileo/tmp/config/node_key.json ~/galileo/0g-home/0gchaind-home/config/
cp ~/galileo/tmp/config/priv_validator_key.json ~/galileo/0g-home/0gchaind-home/config/

```

Delete tmp

```
rm -rf ~/galileo/tmp
```

## Start 0gchaind

```
cd ~/galileo

nohup ./bin/0gchaind start \
    --rpc.laddr tcp://0.0.0.0:26657 \
    --chain-spec devnet \
    --kzg.trusted-setup-path=kzg-trusted-setup.json \
    --engine.jwt-secret-path=jwt-secret.hex \
    --kzg.implementation=crate-crypto/go-kzg-4844 \
    --block-store-service.enabled \
    --node-api.enabled \
    --node-api.logging \
    --node-api.address 0.0.0.0:3500 \
    --pruning=nothing \
    --home ~/galileo/0g-home/0gchaind-home \
    --p2p.seeds 85a9b9a1b7fa0969704db2bc37f7c100855a75d9@8.218.88.60:26656 \
    --p2p.external_address <Your_IP_Server>:26656 > ~/galileo/0g-home/log/0gchaind.log 2>&1 &

```

## Start Geth

```
cd ~/galileo

nohup ./bin/geth --config geth-config.toml \
	 --nat extip:<Your_IP_Server> \
	 --bootnodes enode://de7b86d8ac452b1413983049c20eafa2ea0851a3219c2cc12649b971c1677bd83fe24c5331e078471e52a94d95e8cde84cb9d866574fec957124e57ac6056699@8.218.88.60:30303 \
	 --datadir ~/galileo/0g-home/geth-home \
	 --networkid 16601 > ~/galileo/0g-home/log/geth.log 2>&1 &

```

## Check Chain Status

```
curl -s http://localhost:26657/status | jq
```

```
# Check Logs

tail -f ~/galileo/0g-home/log/geth.log
tail -f ~/galileo/0g-home/log/0gchaind.log
```

## DONE !


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.validator247.com/testnet/rpc-node-0g_lab.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
