Download Bitcoin Core
Get the binary
For an immediately usable, binary version of Bitcoin Core, visit bitcoincore.org/en/download.
Run Bitcoin Core
- Unix/Linux
- Windows
- macOS
Unpack the files into a directory and run:The
bitcoin command supports subcommands:bitcoin gui- Start the graphical interfacebitcoin node- Start the node daemonbitcoin rpc- Execute RPC commands
First-time sync
When you first run Bitcoin Core:- The node will connect to the Bitcoin peer-to-peer network
- It will download and validate all blocks from the genesis block
- You can monitor progress in the GUI or via RPC commands
Basic RPC commands
Once Bitcoin Core is running, you can interact with it using RPC commands.Using bitcoin-cli
Using the bitcoin wrapper command
Thebitcoin rpc command is a newer alternative to bitcoin-cli -named:
Using curl with JSON-RPC
The default RPC port is 8332 for mainnet, 18332 for testnet, and 18443 for regtest.
Configuration
Basic configuration file
Create abitcoin.conf file to customize Bitcoin Core behavior:
Default locations:
- Linux:
~/.bitcoin/bitcoin.conf - macOS:
~/Library/Application Support/Bitcoin/bitcoin.conf - Windows:
%LOCALAPPDATA%\Bitcoin\bitcoin.conf
Enabling RPC in the GUI
The GUIbitcoin-qt has the JSON-RPC server disabled by default. To enable it:
- Add
server=1to yourbitcoin.conffile, or - Start bitcoin-qt with the
-serverflag:bitcoin-qt -server
Next steps
Installation guide
Detailed installation instructions for all platforms
Configuration reference
Learn about bitcoin.conf options and advanced configuration
RPC reference
Explore the complete JSON-RPC API documentation
Security best practices
Learn how to secure your Bitcoin Core installation