Skip to main content

Procedure for Connecting to JOC Testnet

This document describes the procedure for setting up a Geth node in the user environment and connecting to the Japan Open Chain Testnet. Please refer here if you wish to use RPC Endpoints for connecting dApps.

The flow to connection is as follows:

1. Installation of Geth

Install Geth on the source PC. ( Confirmed to work up to Geth ver 1.13.5 ) https://geth.ethereum.org/docs/getting-started/installing-geth

2. Initial Settings

Create a data directory in any directory. Here, it is called "data".

Unset
$ mkdir data

Create a "genesis.json" in the created data directory to describe block information.

Unset
$ sudo vi data/genesis.json

The content of genesis.json is provided separately in a file.

3. Initialization of Geth

Initialize Geth. Execute the following command to specify the created genesis.json.

Unset
$ geth init --datadir data data/genesis.json

4. Synchronization

Synchronize with the target node. If you want to connect to node-1, execute the following command.

Unset
$ geth --datadir data --networkid=361257328 --bootnodes="enode://ba571177c1c4e85103a323713f72781b1a9ea6ca7316660c22629bb3fb7565a0436e337b9cfe84140faea510bb156fbe125f96ce7f916ad6914c358630559f77@43.206.223.86:30303" --http --http.api="clique,personal,eth,net,web3,miner,admin" --http.corsdomain="*" --http.addr="0.0.0.0" --http.port=8546 --snapshot=false --syncmode="full"

The parameters of the testnet are as follows:

NodeNetwork IDenode
test-node-1361257328enode://c801556bf3e2eb2b4dcb1643febe1e7011096997e8cb41230e5f05c737cc0a3f41a76fb73f3262a8fed9742fbb3df6078eed6733dd3c358554207ec8cacfa999@43.207.64.52:30303
test-node-2361257328enode://8aa6f351eff4bee5d3a6a72ca5820fac65274e9dbd63e13d060682a5228000ab960ff8c177d7cf66b0555859b7eabbc866b71625626a11856e3573bf0592bfed@3.112.196.238:30303

5. Verification

You can verify the synchronization state as follows. If the message "Looking for peers" continues, you may not be properly connected, so please check your synchronization command and network environment.

Explorer