bitcoinlib icon indicating copy to clipboard operation
bitcoinlib copied to clipboard

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

Open 1337kingOf opened this issue 1 year ago • 7 comments

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 avatar Dec 03 '23 13:12 1337kingOf

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 avatar Dec 03 '23 13:12 1337kingOf

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

1337kingOf avatar Dec 03 '23 14:12 1337kingOf

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 avatar Dec 04 '23 19:12 mccwdev

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.

mccwdev avatar Dec 04 '23 19:12 mccwdev

have some problem ._.

Using remote PostgreSQL server.

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

OculusVisionSellix avatar Jan 16 '24 18:01 OculusVisionSellix

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

mccwdev avatar Jan 16 '24 18:01 mccwdev

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

OculusVisionSellix avatar Jan 16 '24 20:01 OculusVisionSellix