> For the complete documentation index, see [llms.txt](https://docs.on.nexus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.on.nexus/hodifi/developers/deployment-guide/preparation.md).

# Preparation

<mark style="color:red;">During the testing process, if you encounter any issues, please contact us</mark>

&#x20;<mark style="color:red;">**<https://t.me/may1618>**</mark>

### 🔔 Two Wallets Required

You must prepare **TWO WALLETS** before deployment:

1. **BTC Wallet** - If the borrower defaults, the lender automatically gains control of the BTC collateral through the Taproot script, allowing them to seize the BTC as compensation.
2. **ETH Wallet** - Deploys the loan contract on Ethereum, provides the loan to the borrower, and withdraws repayment after the borrower has successfully repaid.

#### **Match Infomation for Each Wallet:**

**For BTC Wallet:**

* Wallet Address, to `NEXUS_CONFIG_BTC_ADDRESS`
* Private Key (Hex Format), to `NEXUS_CONFIG_BTC_PRIVATE_KEY`

**For ETH Wallet:**

* Wallet Address, to `NEXUS_CONFIG_ETH_ADDRESS`
* Private Key (Hex Format), to `NEXUS_CONFIG_ETH_PRIVATE_KEY`

### Wallet Security Preparation

Security is paramount. You need **TWO** wallets that are fully under your control and supported by the Hodlfi protocol.

#### **Recommended Wallets:**

* Xverse Wallet
* MetaMask Wallet

#### **Critical Information Backup:**

* **Hex Private Key for the Address:** The Hodlfi Nexus requires this private key to sign transactions. Please export it strictly according to your wallet's tutorial and keep it as secure as your seed phrase.

### Server Infrastructure

Your Hodlfi Nexus requires a stable server environment to run.

#### **Server Providers:**

It is recommended to use Amazon Web Services (AWS), Linode, or other reputable cloud service providers.

#### **Recommended Configuration:**

* **CPU:** 2 Cores
* **Memory (RAM):** 4 GB
* **Storage:** 40 GB
* **Operating System:** Ubuntu 20 (or newer) / CentOS 8 (or newer)
* **Network:** A stable public IPv4 connection.


---

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

```
GET https://docs.on.nexus/hodifi/developers/deployment-guide/preparation.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.
