← 返回命令列表

Linux command

bitcoind 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start

bitcoind -daemon

Start

bitcoind -conf=[bitcoin.conf]

Stop

bitcoin-cli stop

Run

bitcoind

说明

bitcoind is the Bitcoin Core daemon. It maintains a full copy of the Bitcoin blockchain, validates transactions and blocks, and can serve as a wallet. The daemon provides RPC and REST interfaces for interaction. Running a full node contributes to Bitcoin network decentralization and allows trustless validation of transactions.

参数

-daemon
Run as background daemon
-conf=_file_
Configuration file path
-datadir=_dir_
Data directory
-chain=_chain_
Select chain: main, testnet4, signet, regtest (default: main)
-testnet4
Use testnet4 network
-signet
Use signet network
-regtest
Regression test mode
-prune=_n_
Enable pruning (keep only N MB)
-txindex
Maintain full transaction index
-rpcuser=_user_
RPC username
-rpcpassword=_pass_
RPC password
-rpcport=_port_
RPC port
-server
Accept command line and JSON-RPC commands
-blocksonly
Reduce bandwidth by not relaying transactions

FAQ

What is the bitcoind command used for?

bitcoind is the Bitcoin Core daemon. It maintains a full copy of the Bitcoin blockchain, validates transactions and blocks, and can serve as a wallet. The daemon provides RPC and REST interfaces for interaction. Running a full node contributes to Bitcoin network decentralization and allows trustless validation of transactions.

How do I run a basic bitcoind example?

Run `bitcoind -daemon` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -daemon do in bitcoind?

Run as background daemon