> 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="https://3042747009-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDUBtTPZKYj40o0zqoC8%2Fuploads%2FqWvPdoUqkH6kicZcNa9D%2Fimage.png?alt=media&amp;token=97e62e5c-eced-4ce4-a949-0e2240b1ca3a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3042747009-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDUBtTPZKYj40o0zqoC8%2Fuploads%2FuiPgVX4csLwDRKqv5k87%2Fimage.png?alt=media&amp;token=11edf418-e373-42e1-bfe8-38eba5faf2b6" alt=""><figcaption></figcaption></figure>
