Node Connect
Last updated
Last updated
To connect to an existing Gesia Node that is already running, access the running Docker container and navigate to the /root/.ethereum
directory. Then, connect to the locally running Geth node using the geth attach
command with the IPC file.
The reason for connecting via IPC file is because in this project, the http.api
and ws.api
options have been disabled to prevent the use of the admin API. This configuration enhances node security by restricting access to critical management functions exposed by the admin API. Allowing external access to these functions could pose security risks.
Once connected to the node, use the addPeer
method to connect to the existing running node. Here are the connection enode addresses for each network:
After successfully adding and confirming the return value as true, use the following command to verify if the two nodes are connected:
Now, wait while the existing block information synchronizes.
Once synchronization is complete, the network is properly configured, and the nodes are connected. You can use Geth methods to inspect block information, transaction details, and more.