Skip to content
This repository was archived by the owner on May 26, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 38 additions & 3 deletions connecting-to-xdai/running-your-own-xdai-node.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,40 @@
# Running your own xDAI node

{% hint style="info" %}
This article is a stub. Maybe you can help write it!
{% endhint %}
This guide will walk you through how to setup your own non-validator xdai node. Please be aware that you will need at least **50GB** of free storage space and a broadband internet connection in order to run the node.

## Getting Started

This guide will be using the openethereum node software, as it is easy to use and non-developer friendly. If you want more control over your node you can use the [Nethermind](https://www.xdaichain.com/for-developers/install-xdai-client/nethermind) client written in .NET or you could use the Rust implementation of [Openethereum](https://www.xdaichain.com/for-developers/install-xdai-client/parity).

### Download

- [Openethereum Linux v3.2.6](https://github.com/openethereum/openethereum/releases/download/v3.2.6/openethereum-linux-v3.2.6.zip)

- [Openethereum MacOS v3.2.6](https://github.com/openethereum/openethereum/releases/download/v3.2.6/openethereum-macos-v3.2.6.zip)

- [Openethereum Windows v3.2.6](https://github.com/openethereum/openethereum/releases/download/v3.2.6/openethereum-windows-v3.2.6.zip)

- [Source](https://github.com/openethereum/openethereum/archive/refs/tags/v3.2.6.zip)


## Running Your Node

Firstly, unzip the archive you downloaded. Next, locate the binary file called ***openethereum*** and run it with the following command

```
./openethereum --chain xdai --jsonrpc-port=8545 --jsonrpc-cors=all --jsonrpc-interface=all --jsonrpc-hosts=all --jsonrpc-apis=web3,eth,net,parity --ws-interface=all --ws-apis=web3,eth,net,parity,pubsub --ws-origins=all --ws-hosts=all --ws-max-connections=10 --max-peers=100
```

Or for those running Windows

```
./openethereum.exe --chain xdai --jsonrpc-port=8545 --jsonrpc-cors=all --jsonrpc-interface=all --jsonrpc-hosts=all --jsonrpc-apis=web3,eth,net,parity --ws-interface=all --ws-apis=web3,eth,net,parity,pubsub --ws-origins=all --ws-hosts=all --ws-max-connections=10 --max-peers=100
```

## Syncing The Chain

If you succesfully started the node it should look something like this

![darkforest](https://user-images.githubusercontent.com/42391793/122550961-59cc3800-d002-11eb-9aec-ce2a32eb5749.png)
Copy link
Contributor

@Bind Bind Jun 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add this screenshot to .gitbook/assets


Now all that's left to do is wait for your local node to synchronize with the current xdai chain.