Litecoin client
Litecoin client
- class xchainpy2_litecoin.ltc_client.LitecoinClient(network=NetworkType.MAINNET, phrase: str | None = None, private_key: str | bytes | callable | None = None, fee_bound: FeeBounds | None = (0.5, 500), root_derivation_paths: Dict[NetworkType, str] | None = {NetworkType.DEVNET: "84'/1'/0'/0/", NetworkType.MAINNET: "84'/2'/0'/0/", NetworkType.STAGENET: "84'/2'/0'/0/", NetworkType.TESTNET: "84'/1'/0'/0/"}, explorer_providers={NetworkType.MAINNET: ('https://blockchair.com/litecoin/', 'https://blockchair.com/litecoin/address/{address}', 'https://blockchair.com/litecoin/transaction/{tx_id}'), NetworkType.STAGENET: ('https://blockchair.com/litecoin/', 'https://blockchair.com/litecoin/address/{address}', 'https://blockchair.com/litecoin/transaction/{tx_id}'), NetworkType.TESTNET: ('https://blockexplorer.one/litecoin/testnet/', 'https://blockexplorer.one/litecoin/testnet/address/{address}', 'https://blockexplorer.one/litecoin/testnet/transaction/{tx_id}')}, wallet_index=0, provider_names=['blockcypher', 'blockchair', 'bitaps'], daemon_url: str | None = None)
Bases:
BitcoinClient
Litecoin constants
Litecoin Utils
- xchainpy2_litecoin.utils.get_ltc_address_prefix(network: NetworkType) str
Get address prefix based on the network. :param network: :return: string address prefix