💻Ord On Mac
This is a how-to guide for setting up Bitcoin-cli and an Ordinals client using Homebrew, allowing you to inscribe directly from your own computer.
Overview
There are two main software components required for setting up your Ordinals client:
Bitcoin Core - This software ran as a command line interface maintains the records of all transactions ever completed on Bitcoin. It is responsible for creating the transactions that inscribe arbitrary data on Bitcoin (Ordinals).
Ordinals Client - This software maintains a record of every inscription created, referencing the transactions on Bitcoin Core. The Ordinals client is also responsible for designing the transactions that meet the Ordinals standard, embedding your arbitrary data on Bitcoin.
Each of these software components maintains its own separate index: one for Bitcoin transactions and one for Ordinals. Both indices are relatively large databases that can be stored on an internal or external drive.
Both pieces of software run as servers. You 'start' the server and then, from another terminal window, send commands to the client.
Quick Reference
Node Setup
1. Install Homebrew
First, you need to install Homebrew, a package manager for macOS. Open Terminal and run the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
For more information, visit Homebrew's official website.
2. Install Bitcoin Core
Once Homebrew is installed, you can install Bitcoin Core using Homebrew by running the following command in Terminal:
brew install bitcoin
3 Set Up External Hard Drive (EXTERNAL HDD ONLY)
Connect your external hard drive to your Mac and create a new folder named BitcoinData
. You may name this folder whatever you'd like.
4. Bitcoin Core Configuration File
The Bitcoin Core Configuration file is responsible for setting the configuration for your Bitcoin node. This includes settings like enabling full index (required for Ordinals) and also where your data directory is stored (if you have chosen an external HDD).
To create a configuration file for Bitcoin Core, follow these steps using TextEdit on macOS:
Open TextEdit: Launch TextEdit from your Applications folder or Spotlight search.
Make the Document Plain Text: Before typing anything, convert your document to plain text. Choose
Format
>Make Plain Text
from the menu bar at the top. If prompted, confirm that you want to convert the document to plain text.Enter Configuration Details: Type or paste the following configuration into your new plain text document (make sure to read the # comments):
txindex=1 # Enables the transaction index which allows the node to retrieve information about any transaction in the blockchain. datadir=/Volumes/YourExternalDriveName/BitcoinData # Specifies a custom data directory for storing blockchain data. PLEASE NOTE this line is ONLY needed if you are not using an external drive.
Be sure to replace
/Volumes/YourExternalDriveName/BitcoinData
with the actual path to your external hard drive's Bitcoin data folder.Save the File: Choose
File
>Save
, and in the save dialog, enterbitcoin.txt
as the file name. Make sure to select a location where you can easily find the file, such as your Desktop.Rename the File Extension: Locate the
bitcoin.txt
file you just saved in Finder. Change the file extension from.txt
to.conf
, resulting inbitcoin.conf
. If macOS asks if you are sure you want to change the file extension, confirm by clickingUse .conf
.
By following these steps, you will have created a bitcoin.conf
configuration file for Bitcoin Core with the specified settings, ready to be used in your Bitcoin node setup.
PLEASE NOTE: Your configuration file will not function if it is not saved with the proper .conf extension. If your document type is listed as 'plain text', it has not been saved correctly.
Right-click, select 'Get Info', and ensure the 'Name & Extension' is set to bitcoin.conf.
5. Move Configuration File
Navigate to the ~/Library/Application Support/Bitcoin
directory on macOS and move your bitcoin.conf
file into this folder, follow these steps:
Open Finder: Click on the Finder icon in your Dock to open a new Finder window.
Go to the Menu Bar: Look at the top of your screen to find the menu bar while you have Finder active.
Open the "Go" Menu: Click on
Go
in the menu bar.Choose "Go to Folder": From the dropdown menu, select
Go to Folder...
or use the shortcutShift + Command (⌘) + G
to open the Go to Folder dialog.Enter the Path: Type
~/Library/Application Support
and clickGo
. This will take you directly to the Application Support folder within your Library. Locate theBitcoin
Folder.If the
Bitcoin
folder does not exist, you will need to create it. You can do this by right-clicking (or Ctrl-clicking) within the Application Support folder, selectingNew Folder
, and naming itBitcoin
.
Move the
bitcoin.conf
File: Locate thebitcoin.conf
file you previously created and saved. You can drag this file from its current location (e.g., Desktop) and drop it into theBitcoin
folder you've just navigated to in Finder.
By following these steps, you will have successfully moved your bitcoin.conf
file to the correct directory for Bitcoin Core to use when it runs.
6. Start Bitcoin Daemon
To start the Bitcoin daemon, open the Terminal and run the following command:
bitcoind
To stop Bitcoin Core, use Ctrl+C
in that same Terminal window.
7. Verify Blockchain Information
To verify the sync progress, from a new terminal window, you can check the blockchain status with:
bitcoin-cli getblockchaininfo
Ord Setup
1. Download and Install Ord
Install Ord using Homebrew:
brew install ord
2. Create Ord Alias (optional)
When using an external hard drive with ORD, it's necessary to specify the locations of your bitcoin cookie file and the ORD data directory each time you run ORD. To streamline this process, you can create an 'alias' that automatically appends the required paths to your commands.
If you're using Zsh (the default shell in macOS Catalina and later), follow these steps to make the ord
alias permanent:
Open Terminal.
Edit Your
.zshrc
File: Use a text editor to open your~/.zshrc
file. You can do this by typing the following command in the Terminal:nano ~/.zshrc
This opens the
.zshrc
file in Nano, but you can use any text editor you prefer.Add Your Alias to the
.zshrc
File: Scroll to the bottom of the file (yours may be empty) and add the alias command. Make sure to replace the placeholder paths with the actual paths on your system:alias ord='ord --data-dir /Volumes/YourExternalDriveName/ORD --cookie-file /Volumes/YourExternalDriveName/BitcoinData/.cookie'
Ensure there are no typos and that the paths are correct for your setup.
Save Your Changes: If using Nano, save your changes by pressing
Ctrl + O
, then press Enter, and exit by pressingCtrl + X
.Apply the Changes: To make sure your current terminal session recognizes the new alias, source your
.zshrc
file by running:source ~/.zshrc
Verify the Alias: Try using the
ord
alias in your terminal to ensure it works as expected.
3. Run Ord
Start the Ord server:
ord server
Once the Ord Server is running, you can access your own local version on http://0.0.0.0:80.
From here on out, any commands ran will be in another terminal window.
4. Sync Ord
You need to allow some time for Ord to synchronize with Bitcoin Core, indexing inscriptions. Depending on the specifications of your computer, this process could take several days.
To streamline the setup process (depending on your internet speeds), you can download a pre-built index from the following link: Shared Delusion Index.
For Internal HDD Users: Place the downloaded file in the following directory:
~/Library/Application Support/ord
For External HDD Users: Place the downloaded file in the directory you specified during step 3 of the Ord Setup.
5. Create & Fund Wallet
To create a new wallet, in a new terminal window run:
ord wallet create
Make sure to securely store the 12-word mnemonic seed phrase provided.
To generate a receiving address for funding:
ord wallet receive
Use this address to send funds for future inscriptions.
6. Create an Inscription
Create your first inscription! You can use any file you want - I'd suggest a text file to get started.
A small list of helpful commands ordinal can be found on the Ordinal Commands page.
To create an inscription, use the following command:
# To simulate the inscription without actually inscribing, add --dry-run to the command. Remove it when you're ready to inscribe for real.
ord wallet inscribe --fee-rate <FEE_RATE> --file "FILE" --dry-run
# Command for actual inscription (remove --dry-run):
ord wallet inscribe --fee-rate <FEE_RATE> --file "FILE"
For instance:
ord wallet inscribe --fee-rate 45 --file "D:\Files\1.txt"
7. Update Ord
To ensure your Ord client is up to date, follow these steps:
Check Your Current Version:
Determine the version of your Ord client by running:
ord --version
Update Ord:
First, update Homebrew's formulae to ensure you have the latest version of Ord available:
brew update
Then, upgrade the Ord client using:
brew upgrade ord
Cleanup:
After updating, you can remove outdated versions and clean up your system with:
brew cleanup
Last updated