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
596 stars 199 forks source link

wallet.transactions_update() It's not working as it should. #354

Closed 1337kingOf closed 5 months ago

1337kingOf commented 9 months ago

I have no errors, everything is working fine, but when I send money to my bitcoinlib wallet for the first time, it can see it. However, if it's the 2nd or 3rd transaction, it just doesn't see it immediately, and only after some time (like 10 min +) and many calls to wallet.transactions_update() might it eventually see the transaction. How can I change the provider or add my own API key, for example, for Blockchair?

1337kingOf commented 9 months ago
Screenshot 2023-12-03 at 3 46 38 PM Screenshot 2023-12-03 at 3 47 24 PM

Its dont see last transaction, im checking like 24 mins and still didnt get this transaction

1337kingOf commented 9 months ago

is there way to do like wallet.update_from("Provider","api")

mccwdev commented 9 months ago

is there way to do like wallet.update_from("Provider","api")

Yes you can change the Wallet.providers attribute:

wallet.providers = ['blockcypher', 'more-providers', ...]
mccwdev commented 9 months ago

Could it be that is only shows up after is was confirmed?

I've noticed before that some providers do not return unconfirmed transactions.

Maybe you can check in bitcoinlib.log, if you can see which provider returns incorrect results. I will run some tests myself as well.

OculusVisionSellix commented 7 months ago

have some problem ._.

Using remote PostgreSQL server.

Litecoin, more than 10+ confirmations still money doesnt show up in my balance.

mccwdev commented 7 months ago

Please check the logs in bitcoinlib.log and see which provider returns errors or incorrect results.

OculusVisionSellix commented 7 months ago

It seems I had the wrong address, when I receive money on the address which is displayed by: account.as_dict()["address"] the program doesnt recognize the balance I used the wallet.addresslist(account_id=account.account_id) address and it worked