> For the complete documentation index, see [llms.txt](https://blocx.gitbook.io/blocx./llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blocx.gitbook.io/blocx./get-started/update-masternode.md).

# Update Masternode

#### Masternode Update Guide

This guide provides instructions for updating a masternode in two scenarios: Regular Node Update and Lite Node Update. Follow the steps for the correct type of update for your masternode.

***

#### 1. **Prerequisites**

Before you begin, ensure you have the following:

* **ProTxHash**: The unique identifier for your masternode.
* **IP and Port**: The new IP address and port of your masternode.
* **BLS Private Key**: The BLS (Basic Long-term Secret) private key associated with your masternode.

You will need to use the following commands in your Blocx wallet CLI (Command Line Interface).

***

#### 2. **Regular Node Update**

The `protx update_service` command is used for a regular masternode update. This updates the service details, such as IP address and port, for a regular node.

**Command:**

```bash
blocx-cli protx update_service "proTxHash" "ipAndPort" Your_BLS_PrivateKey
```

**Example:**

```bash
blocx-cli protx update_service "0123456701234567012345670123456701234567012345670123456701234567" "1.2.3.4:12972" 5a2e15982e62f1e0b7cf9783c64cf7e3af3f90a52d6c40f6f95d624c0b1621cd
```

**Steps for Regular Node Update:**

1. Open the Blocx wallet and access the terminal or command line interface.
2. Enter the `protx update_service` command, replacing the following placeholders:
   * `proTxHash`: Your masternode's ProTxHash.
   * `ipAndPort`: The new IP address and port (format: `IP:Port`).
   * `Your_BLS_PrivateKey`: Your masternode's BLS private key.
3. Run the command to update the masternode.

***

#### 3. **Lite Node Update**

The `protx update_service_lite` command is used for a lite masternode update. This is typically used when you are running a masternode that requires fewer resources.

**Command:**

```bash
blocx-cli protx update_service_lite "proTxHash" "ipAndPort" Your_BLS_PrivateKey
```

**Example:**

```bash
blocx-cli protx update_service_lite "0123456701234567012345670123456701234567012345670123456701234567" "1.2.3.4:12972" 5a2e15982e62f1e0b7cf9783c64cf7e3af3f90a52d6c40f6f95d624c0b1621cd
```

**Steps for Lite Node Update:**

1. Open the Blocx wallet and access the terminal or command line interface.
2. Enter the `protx update_service_lite` command, replacing the placeholders:
   * `proTxHash`: Your masternode's ProTxHash.
   * `ipAndPort`: The new IP address and port.
   * `Your_BLS_PrivateKey`: Your BLS private key.
3. Run the command to update the masternode.

***

#### 4. **Confirmation of Update**

After running the respective command, you can confirm that the masternode update was successful by checking the masternode status with the following command:

```bash
blocx-cli masternode status
```

This will display the current status of your masternode and verify if the update was applied successfully.

***

#### 5. **Common Errors and Troubleshooting**

* Ensure that the IP address and port are in the correct format (`IP:Port`).
* Double-check your BLS private key to avoid any input errors.
* Verify that your Blocx wallet is fully synchronized before running the update commands.
* If the update fails, check the node logs for error messages and ensure your masternode is properly configured.

By following these steps, you can successfully update your masternode, whether it's a regular or lite node.


---

# 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, and the optional `goal` query parameter:

```
GET https://blocx.gitbook.io/blocx./get-started/update-masternode.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
