-
Notifications
You must be signed in to change notification settings - Fork 179
bx settings
Eric Voskuil edited this page Apr 18, 2017
·
24 revisions
Display the loaded configuration settings.
$ bx settings --help
Usage: bx settings [-h] [--config VALUE] [--format VALUE]
Info: Display the loaded configuration settings.
Options (named):
-c [--config] The path to the configuration settings file.
-f [--format] The output format. Options are 'info', 'json' and
'xml', defaults to 'info'.
-h [--help] Get a description and instructions for this command.
If settings are not specified in a configuration file the defaults are populated.
defaults
$ bx settings
network
{
channel_handshake_seconds 30
connect_retries 0
connect_timeout_seconds 5
debug_file debug.log
error_file error.log
hosts_file hosts.cache
identifier 3652501241
seeds seed.bitnodes.io:8333,seed.bitcoinstats.com:8333,seed.bitcoin.sipa.be:8333,dnsseed.bluematt.me:8333,seed.bitcoin.jonasschnelli.ch:8333,dnsseed.bitcoin.dashjr.org:8333
}
server
{
client_private_key 0000000000000000000000000000000000000000
connect_retries 0
connect_timeout_seconds 5
server_public_key 0000000000000000000000000000000000000000
socks_proxy [::ffff:0:0]
url tcp://mainnet.libbitcoin.net:9091
}
wallet
{
hd_public_version 76067358
hd_secret_version 76066276
pay_to_public_key_hash_version 0
pay_to_script_hash_version 5
transaction_version 1
wif_version 128
}
--config bx-testnet.cfg
$ bx settings -c bx-testnet.cfg
settings
{
network
{
channel_handshake_seconds 30
connect_retries 0
connect_timeout_seconds 5
debug_file debug.log
error_file error.log
hosts_file hosts.cache
identifier 118034699
seeds testnet-seed.alexykot.me:18333,testnet-seed.bitcoin.petertodd.org:18333,testnet-seed.bluematt.me:18333,testnet-seed.bitcoin.schildbach.de:18333
}
server
{
client_private_key 0000000000000000000000000000000000000000
connect_retries 0
connect_timeout_seconds 5
server_public_key 0000000000000000000000000000000000000000
socks_proxy [::ffff:0:0]
url tcp://testnet.libbitcoin.net:19091
}
wallet
{
hd_public_version 70617039
hd_secret_version 70615956
pay_to_public_key_hash_version 111
pay_to_script_hash_version 196
transaction_version 1
wif_version 239
}
}
This presumes the existence of
bx-testnet.cfg
with the above settings.
environment variable BX_CONFIG=MyConfig/bx.cfg
$ bx settings
settings
{
network
{
channel_handshake_seconds 30
connect_retries 0
connect_timeout_seconds 5
debug_file debug.log
error_file error.log
hosts_file hosts.cache
identifier 3652501241
seeds seed.bitnodes.io:8333,seed.bitcoinstats.com:8333,seed.bitcoin.sipa.be:8333,dnsseed.bluematt.me:8333,seed.bitcoin.jonasschnelli.ch:8333,dnsseed.bitcoin.dashjr.org:8333
}
server
{
client_private_key "A6hgo]R8<48/xB3yfd5x]mt-a9u/*P^j$$K)SBR@"
connect_retries 0
connect_timeout_seconds 5
server_public_key ")nNv4Ji=CU:}@<LOu-<QvB)b-PIh%PX[)?mH>XAl"
socks_proxy 127.0.0.1:1080
url tcp://rmrai2ifbed2bf55.onion:19091
}
wallet
{
hd_public_version 76067358
hd_secret_version 76066276
pay_to_public_key_hash_version 0
pay_to_script_hash_version 5
transaction_version 1
wif_version 128
}
}
This presumes the existence of
MyConfig/bx.cfg
with the above settings.
Users | Developers | License | Copyright © 2011-2024 libbitcoin developers
- Home
- Build BX
- General Information
- Developer Information
- Configuration Settings
- Tutorials
- Meta Commands
- Wallet Commands
- Key Encryption Commands
- Stealth Commands
- Messaging Commands
- Transaction Commands
- Online Commands
- Encoding Commands
- Hash Commands
- Math Commands