Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the content of the configuration file bitcoin.conf of bitcoind

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "what is the content of the configuration file bitcoin.conf of bitcoind". In the daily operation, I believe that many people have doubts about the content of the configuration file bitcoin.conf of bitcoind. The editor has consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "what is the content of the configuration file bitcoin.conf of bitcoind?" Next, please follow the editor to study!

1. Default path of bitcoin.conf

Under linux, the default path for bitcoin.conf is $HOME/.bitcoin/bitcoin.conf

Under windows, the default path for bitcoin.conf is% APPDATA%\ bitcoin\ bitcoin.conf

Under mac, the default path for bitcoin.conf is $HOME/Library/Application Support/Bitcoin/bitcoin.conf

By default, bitcoind does not automatically create the bitcoin.conf configuration file under the above path, so you need to make a copy and put it in the above directory. If you don't have a ready-made configuration file available, you can copy one from github: bitcoin.conf.

2. Bitcoin.conf configuration instructions

In the bitcoin.conf configuration file, each line declares configuration items and values in the form of key=value, with comments after #.

2.1 overall configuration

Testnet: connect to the main network or test network:

Testnet=0 # 0-main Network 1-Test Network

Regtest: whether to run in private chain mode

Regtest=0 # 0-No 1-Yes

Proxy: whether to use the socks5 proxy or not

# proxy=127.0.0.1:9050 # disabled by default

Bind: local listening address

# bind= # comment this line to use the default listening address

Whitebind: local whitelist listening address

# whitebind= # comment this line to use the default listening address

Addnode: add seed nod

# addnode=69.164.218.197 # multiple can be added

Connect: address of the connection node

# connect=69.164.218.197

Listen: whether to enter listening mode is enabled by default, unless connect configuration is used

# listen=1

Maxconnections: maximum inbound / outbound connections

# maxconnections=2.2 RPC configuration

Server: whether to start the JSON-RPC interface

# server=0 # 0-do not start 1-start

The listening address of the rpcbind:rpc interface, which is bound to all IP by default

# rpcbind=

Listening port of the rpcport:rpc interface

# rpcport=8332

Access user name of the rpcuser:rpc interface

# rpcuser=alice#rpcpassword=DONT_USE_THIS_YOU_WILL_GET_ROBBED_8ak1gI25KFTvjovL3gAM967mies3E=

Number of seconds the rpcclienttimeout:rpc client timed out

# rpcclienttimeout=30

Rpcallowip:rpc access whitelist

# rpcallowip=1.2.3.4/24

Default connection address for rpcconnect:bitcoin-cli

# rpcconnect=127.0.0.12.3 wallet configuration

Txconfirmtarget: minimum number of confirmations for transactions. Default is 6.

# txconfirmtarget=n

Paytxfee: transaction fee for each Bitcoin sent

Paytxfee=0.000x2.4 other configuration

Keypool: key pool size

# keypool=100

Prune: the number of pruning retained. Historical blocks exceeding this number will be deleted from memory.

# prune=5502.5 user interface options

Min: whether to minimize after startup

# min=1

Minimizetotray: whether to minimize to the system tray

# minimizetotray=13, sample bitcoin.conf file

Note that in the following configuration file, the options have been commented, and you need to uncomment and set the corresponding values according to your own situation:

# testnet=0#regtest=0#proxy=127.0.0.1:9050#bind=#whitebind=#addnode=69.164.218.197#addnode=10.0.0.2:8333#connect=69.164.218.197#listen=1#maxconnections=#server=0#rpcbind=#rpcuser=alice#rpcpassword=DONT_USE_THIS_YOU_WILL_GET_ROBBED_8ak1gI25KFTvjovL3gAM967mies3E=#rpcclienttimeout=30#rpcallowip=10.1.1.34/255.255.255.0#rpcallowip=1.2.3.4/24#rpcallowip=2001:db8:85a3:0:0:8a2e:370:7334/96#rpcport=8332#rpcconnect=127 .0.0.1 # txconfirmtarget=n#paytxfee=0.000x#keypool=100#prune=550#min=1#minimizetotray=1 to this The study on "what is the content of the configuration file bitcoin.conf of bitcoind" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report