> For the complete documentation index, see [llms.txt](https://docs.exsat.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.exsat.network/guides-of-data-consensus/others/operation-references/common-operations/set-btc-rpc-node.md).

# 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>
