# Set BTC RPC Node

The Client will access the BTC Node and get BTC block data, such as the latest BTC block header, block body, Segwit data, and more.&#x20;

There're two ways to set BTC RPC node , and they have the same result.

1. Edit the .env file
2. Through the "Set BTC RPC Node" menu

### 1. Edit the .env file

Suppose you're in the "exsat-client" folder, and had executed "cp .env.example .env", then you could edit the ".env" file. e.g, by vim.

```
vim .env
```

Please edit the "BTC\_RPC\_URL" item , and save it. If your BTC RPC Node needs authentication, please define the username and password.

```
BTC_RPC_URL=
BTC_RPC_USERNAME=
BTC_RPC_PASSWORD=
```

### 2. Through the "Set BTC RPC Node" menu

If it's the first time you're running the client, the "Set BTC RPC Node" menu will appear after you finished [Set Reward Address](/guides-of-data-consensus/others/operation-references/synchronizer-operations/change-reward-address.md).

If you wish to reset the BTC RPC Node, you could navigate to it by choosing:

Synchronizer/Validator -> Reset BTC RPC Node

If your BTC RPC Node needs authentication, please enter the username and password.

<figure><img src="/files/pcUrwiXAPrpHS1CERzCI" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/ulOCTv3su81pQuL4l2pX" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.exsat.network/guides-of-data-consensus/others/operation-references/common-operations/set-btc-rpc-node.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
