bitcoinlib.services.litecoind module

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

Bases: Exception

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

Bases: 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

blockcount()[source]
estimatefee(blocks)[source]
static from_config(configfile=None, network='litecoin', **kargs)[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:

getbalance(addresslist)[source]
getblock(blockid, parse_transactions=True, page=1, limit=None)[source]
getinfo()[source]
getrawblock(blockid)[source]
getrawtransaction(txid)[source]
gettransaction(txid)[source]
gettransactions(address, after_txid='', limit=20)[source]
getutxos(address, after_txid='', limit=20)[source]
isspent(txid, index)[source]
mempool(txid='')[source]
sendrawtransaction(rawtx)[source]