1200wd / bitcoinlib

Bitcoin and other Cryptocurrencies Library for Python. Includes a fully functional wallet, Mnemonic key generation and management and connection with various service providers to receive and send blockchain and transaction information.
http://bitcoinlib.readthedocs.io/
GNU General Public License v3.0
588 stars 199 forks source link

No successful response from any serviceprovider: ['bitaps.litecoin.testnet', 'chainso.litecoin.testnet'] #287

Closed tomjeannesson closed 1 year ago

tomjeannesson commented 1 year ago

I am getting the following error: bitcoinlib.services.services.ServiceError: No successful response from any serviceprovider: ['bitaps.litecoin.testnet', 'chainso.litecoin.testnet'] when trying to call wallet.utxos_update() or wallet.transactions_update().

Here is a code snippet to reproduce:

from bitcoinlib.wallets import Wallet
wallet = Wallet.create(
    name=f"Wallet",
    network="litecoin_testnet",
)
wallet.utxos_update()
wallet.transactions_update()

Any ideas on how to fix this?

tomjeannesson commented 1 year ago

It seams to me the correct endpoint for bitaps.litecoin.testnet is https://api.bitaps.com/ltc/testnet/v1/blockchain/address/transactions/{address}, but doesn't work reliably, as pointed out by a FIXME comment in the BitapsClient file. Any ideas on how to change this? For chainso.litecoin.testnet, they seem to be behind a paywall.

mccwdev commented 1 year ago

Bitaps seems to be the only Litecoin Testnet provider still available, but that one works only partial. I Could no find any other free providers, may someone has a suggestion?

shahverd commented 1 year ago

I'm facing the same problem with bitcoin testnet. And it happens when update UTXOs.

mccwdev commented 1 year ago

Are you using the latest version? I did some fixes recently. And could you check the logs, to see what specific error occur?

shahverd commented 1 year ago

I wasn't using the laster version, so I updated it, and now it seems that everything is working again. thanks