Simon Volpert addrwatch / 380fb9f
Update bch lib from minipos project Simon Volpert 6 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
1515 TIMEOUT = 5
1616 exchanges = [
1717 {
18 'url': 'https://api.coinmarketcap.com/v1/ticker/bitcoin-cash/?convert={cur}',
18 'url': 'https://api.coinmarketcap.com/v2/ticker/1831/?convert={cur}',
1919 'price_key': '0.price_{cur_lower}',
2020 },
2121 {
5454 'prefixes': '13',
5555 },
5656 {
57 'url': 'https://blockdozer.com/api/addr/bitcoincash:{address}',
57 'url': 'https://blockdozer.com/api/addr/{address}',
5858 'tx_url': 'https://blockdozer.com/api/tx/{txid}',
5959 'balance_key': None,
6060 'confirmed_key': 'balance',
327327 if prefixes == 'qp13':
328328 server = pick_explorer(explorer, ignore_errors=ignore_errors)
329329 else:
330 server = pick_explorer(explorer, address_prefix=prefixes[0], ignore_erros=ignore_errors)
330 server = pick_explorer(explorer, address_prefix=prefixes[0], ignore_errors=ignore_errors)
331331 # Try to get balance
332332 try:
333333 # Get and cache the received data for possible future analysis