bitcoinlib.services.bitcoind module
- class bitcoinlib.services.bitcoind.BitcoindClient(network='bitcoin', base_url='', denominator=100000000, *args)[source]
Bases:
BaseClient
Class to interact with bitcoind, the Bitcoin deamon
Open connection to bitcoin node
- Parameters:
base_url – Connection URL in format http(s)://user:password@host:port.
network – Bitcoin mainnet or testnet. Default is bitcoin mainnet
denominator – Denominator for this currency. Should be always 100000000 (Satoshi’s) for bitcoin
wallet_name – Name of Bitcoin core wallet to use. Make sure the wallet exists, otherwise connection will fail.
- Type:
str
- Type:
str
- Type:
str
- Type:
str
- static from_config(configfile=None, network='bitcoin', **kwargs)[source]
Read settings from bitcoind config file
Obsolete: does not work anymore, passwords are not stored in bitcoin config, only hashed password.
- Parameters:
configfile – Path to config file. Leave empty to look in default places
network – Bitcoin mainnet or testnet. Default is bitcoin mainnet
- Type:
str
- Type:
str
- Return BitcoindClient: