# Installing & Indexing Ord Client

## Installing Ord

<figure><img src="/files/2iJDipImlFSB4tslcKhM" alt=""><figcaption></figcaption></figure>

Search "Visual Studio" in your Search bar and select to open it.

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

Click "Clone a repository"

<figure><img src="/files/6OoHyHBBw2BkaeRbSFJt" alt=""><figcaption></figcaption></figure>

Enter the following URL under "Repository location":

```
https://github.com/ordinals/ord.git
```

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

Click Clone. Once completed, open the Developer PowerShell for VS (you can search this in your menu bar). Run the following command to navigate to the ord folder:

```
cd ord
```

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

Now we will install the cargo package. Run the following command:

```
cargo build --release
```

Now we will navigate to where the Ord client is located. Simply type the following command:

```
cd target\release
```

## Checking TXINDEX is synced

We will need to check to see where the indexing is at with Bitcoin Core.

In Bitcoin Core, click Window -> Console.

Type `getindexinfo` -> Check the "synced" option, if it is "false", the txindex is still syncing.  If the "synced" option is "true", then proceed to the next steps.

During indexing:

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

After indexing is finished:

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

{% hint style="warning" %}
If your getindexinfo comes back blank, you need to update your Bitcoin config file to include "txindex=1". Here is the guide: [Update Bitcoin Config](https://guide.ordinalshelp.com/bitcoin-core-ord-client-setup-on-windows#update-config-file)
{% endhint %}

## Indexing Ord

You will now choose between indexing ord via ordstuff.info or doing it via the command line.

***Select the tab below for the method you wish to index:***

{% tabs %}
{% tab title="Index via Ordstuff.info (fastest)" %}

### Indexing Ord via ordstuff.info (fastest, requires torrent client)

Ordinals legend [Greg](https://twitter.com/gm7t2) offers Ordinal indexes for download directly from his website <https://ordstuff.info>. These are available in torrent format, so you will need to have the appropriate software installed on your device to access them.

This will provide a faster way to index ord rather than indexing via command line.

**REQUIREMENTS:**

* Torrent client such as uTorrent <https://www.utorrent.com/>
* A ZIP tool (optional, but encouraged) - Decrease your chances of corrupting the index file when unzipping by using a ZIP tool:
  * WINZIP (recommended) <https://www.winzip.com/en/download/winzip/>

***

Go to: <https://ordstuff.info/indexes/>\
\
Select the index version you wish to download. If you are looking to index with RUNES choose version 0.18 or later.

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

Now you will choose if you want to index WITH or WITHOUT sats. Here is the blurb from the website:

> The 'with' and 'without' refer to the --index-sats index. All index files have inscriptions and runes indexed.

If you are only wanting to focus on etching and minting runes, you can choose the "without".

If you want to have the ability to sat hunt, you will choose the "with".

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

Once you click the file, the torrent file will begin to download.

Now open your torrent client (I will be using uTorrent in this guide).&#x20;

Add the file that was just downloaded off Ordstuff to uTorrent. You can choose what folder the download will go to after it's completed. Make note of the location so you can find it later.

<figure><img src="/files/WT2f728b4sgQBrSv2ks9" alt="" width="375"><figcaption></figcaption></figure>

The file will begin to download. Keep the uTorrent window open as it downloads (this can take a while so check back periodically to see if it is finished).

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

Once it is done Downloading, you will begin Seeding. You can choose to leave the seeding on, or turn it off. \
\
Now you will unzip/uncompress the file that uTorrent downloaded to your computer. Navigate to the folder you had it saved to. You will see the zip file.  Right click and Extract Files or use whichever ZIP tool you have on your computer.

<figure><img src="/files/VsgoyVvovBDKrzUsAZ7e" alt="" width="322"><figcaption></figcaption></figure>

This will take a bit of time (it took mine about 5-10 minutes):

<figure><img src="/files/DqdklLvjlvk5W2nK4k0V" alt="" width="375"><figcaption></figcaption></figure>

Once it is done a new folder will appear and you will be able to open it. There will be an index file in there:

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

***

#### Create a New Ord Data Directory&#x20;

{% hint style="danger" %}
Follow this if this is your first time indexing. If not, skip to **Move Greg's Ordstuff Index File to Ord Data Directory.**
{% endhint %}

In your command terminal, run the following command to begin an ord index. This will generate the ord data directory folder.  Be sure to include the --data-dir flag if you wish to have it saved to an specific drive/folder.

```
./ord index update
```

{% hint style="warning" %}
*Add `--cookie-file <path>` if required.  This will be required if you are saving your Bitcoin data to an external drive.  See* [*How to Find .cookie file*](/bitcoin-core-ord-client-setup-on-windows/how-to-find-.cookie-file.md)*.*\
\
*Add `--data-dir <path>` if you want the ord data directory index to be saved to an external folder and not locally on your C drive.*\
\
*Example:*`./ord --cookie-file <path> --data-dir <path> index update`
{% endhint %}

Once the index begins, press CTRL + C until the command stops and a new command line appears.

***

**Move Greg's Ordstuff Index File to Ord Data Directory:**

Navigate to your ord data directory. If you use a --data-dir when indexing, you will navigate to that path. If you do not use --data-dir, then navigate to your AppData -> Roaming -> Ord folder (see below).

{% hint style="warning" %}
If your ord data directory is located in your AppData folder, you can find it by typing `%appdata%` in your bottom search bar and pressing Enter.  Navigate to your Roaming folder -> ord folder.&#x20;

<img src="/files/U4F3belRA85AHgzbIdgr" alt="" data-size="original">
{% endhint %}

Once you are in your ord folder, you will see an existing `index.redb` file.

<figure><img src="/files/LFTdP6kZNXnRpquEc2o2" alt="" width="272"><figcaption></figcaption></figure>

Delete the existing index.redb file (or you can make a folder called "backup" and move it in there, *optional*).

Move the new index file from Ordstuff that was just unzipped into the ord folder.

<figure><img src="/files/EDszduLulAtUbW7ETEX4" alt="" width="235"><figcaption></figcaption></figure>

**IMPORANT** !!  Now rename the file `index.redb`

<figure><img src="/files/sFPc6Paaw9NmAezjpNPe" alt="" width="179"><figcaption></figcaption></figure>

***

Now go to your command prompt, run the following command:

<pre><code><strong>./ord index update
</strong></code></pre>

{% hint style="warning" %}
*Add `--cookie-file <path>` if required.  This will be required if you are saving your Bitcoin data to an external drive.  See* [*How to Find .cookie file*](/bitcoin-core-ord-client-setup-on-windows/how-to-find-.cookie-file.md)*.*\
\
*Add `--data-dir <path>` if you want the ord data directory index to be saved to an external folder and not locally on your C drive.*\
\
*Example:*`./ord --cookie-file <path> --data-dir <path> index update`
{% endhint %}

Index should pick up from the last block ordstuff indexed.  If it starts from block 0, there may be an issue (either you did not save it to the correct ord data directory folder or did not rename). Once it is done updating, a new command line will appear.
{% endtab %}

{% tab title="Index via Command Line" %}

### Indexing Ord via Command Line

In the Developer PowerShell for VS perform the following command.&#x20;

**Command if you want to index RUNES (approx. \~30GB)**

```
./ord --index-runes index update
```

{% hint style="warning" %}
*Add `--cookie-file <path>` if required.  This will be required if you are saving your Bitcoin data to an external drive.  See* [*How to Find .cookie file*](/bitcoin-core-ord-client-setup-on-windows/how-to-find-.cookie-file.md)*.*\
\
*Add `--data-dir <path>` if you want the ord data directory index to be saved to an external folder and not locally on your C drive.*

Example: `./ord --cookie-file <path> --data-dir <path> --index-runes index update`
{% endhint %}

**Command if you want to index RUNES AND SATS (approx. \~85GB)**

```
./ord --index-runes --index-sats index update
```

{% hint style="warning" %}
*Add `--cookie-file <path>` if required.  This will be required if you are saving your Bitcoin data to an external drive.  See* [*How to Find .cookie file*](/bitcoin-core-ord-client-setup-on-windows/how-to-find-.cookie-file.md)*.*\
\
*Add `--data-dir <path>` if you want the ord data directory index to be saved to an external folder and not locally on your C drive.*

Example: `./ord --cookie-file <path> --data-dir <path> --index-runes --index-sats index update`
{% endhint %}

Now you are indexing Ord. **This will probably take some time.**  Be sure to keep Bitcoin Core and PowerShell open.
{% endtab %}
{% endtabs %}

<figure><img src="/files/zttHFveytC6V1gnkF3lI" 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://guide.ordinalshelp.com/bitcoin-core-ord-client-setup-on-windows/installing-and-indexing-ord-client.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.
