bitcoinlib.services.litecoind module

exception bitcoinlib.services.litecoind.ConfigError(msg='')[source]

Bases: Exception

class bitcoinlib.services.litecoind.LitecoindClient(network='litecoin', base_url='', denominator=100000000, *args)[source]

Bases: bitcoinlib.services.baseclient.BaseClient

Class to interact with litecoind, the Litecoin deamon

Open connection to litecoin node

Parameters:
  • network – Litecoin mainnet or testnet. Default is litecoin mainnet
  • base_url – Connection URL in format http(s)://user:password@host:port.
  • denominator – Denominator for this currency. Should be always 100000000 (satoshis) for litecoin
Type:

str

Type:

str

Type:

str

block_count()[source]
estimatefee(blocks)[source]
static from_config(network='litecoin')[source]

Read settings from litecoind config file

Parameters:
  • configfile – Path to config file. Leave empty to look in default places
  • network – Litecoin mainnet or testnet. Default is litecoin mainnet
Type:

str

Type:

str

Return LitecoindClient:
 
getrawtransaction(txid)[source]
gettransaction(txid)[source]
getutxos(addresslist)[source]
sendrawtransaction(rawtx)[source]