# Masternode Mining

**Masternode setup**

{% embed url="<https://youtu.be/J4GW2_-ExsY>" %}
Masternode Setup
{% endembed %}

**Step by step**

Masternode can setup only from GUI wallets!

To run Masternode you need 7500 OJX in your wallet!

{% tabs %}
{% tab title="1. Genkey" %}
Open your OJX Coin Wallet and wait until the wallet fully synced with the blockchain.

1.Go to “Tools”.

2.Click “Debug console”. This is the console where you will execute all commands.

3.Create a masternode private key. Enter command: masternode genkey

Example output: 75eqvNfaEfkd3YTwQ3hMwyxL2BgNSrqHDgWc6jbUh4Gdtnro2Wo
{% endtab %}

{% tab title="2. Make MN Wallet" %}
1.Go to “Tools”.

2.Click “Debug console”. This is the console where you will execute all commands.

3.Get your collateral address. Enter command: getaccountaddress “MN1”

Example output: Nad4xtgdwf7c5y45ruy5MWtVY43zYMCvva
{% endtab %}

{% tab title="3. Output Key" %}
1.Go to “Tools”.

2.Click “Debug console”. This is the console where you will execute all commands.

3.Get your output key. Enter command: masternode outputs

Example output: “06e38868bb8f9958e34d5155437d009b72dff33fc28874c87fd42e51c0f74fdb” : “0”
{% endtab %}

{% tab title="4. Config" %}
1.Go to “Tools”.

2.Click “Open wallet configuration file”.

3.Paste this all:

\#----

rpcuser=user

rpcpassword=password

rpcallowip=127.0.0.1

\#----

listen=1

server=1

daemon=1

maxconnections=64

\#----

masternode=1

masternodeprivkey=paste there your gen key

externalip=127.0.0.1

masternodeaddr=127.0.0.1:23777

\#----
{% endtab %}

{% tab title="5. MN Config" %}
1.Go to “Tools”.

2.Click “Open masternode configuration file”.

3.Paste this all:

MN1 127.0.0.1:23777 enter-gen-key enteroutputkey
{% endtab %}

{% tab title="6. MN Start" %}
1.Make sure 7500 OJX sent to your MN1 Wallet and get at least 15 confirmation

2.Save files config and masternode config with all your genkey and output key

3.Close wallet and reopen then follow these steps:

* Go to “Tools”.
* Click “Debug console”. This is the console where you will execute all commands.
* Run masternode Enter command: masternode start
* Example output: Masternode successfully started
  {% endtab %}
  {% endtabs %}
