Closed cryptodeveloperin closed 6 years ago
I am looking around the testnet is correctly sync. So this is likely a different issue.
This is likely a bug of your code, all scriptPubKey
involved show the transaction correctly,
one of the example is https://tapi.qbit.ninja/balances/0x76a9144d1c574c397a934c6a55840fe9e9bde2835c510c88ac?unspentOnly=true
this code working last 7 days but today we are are getting some issue so please that can let me know what wrong in our code. we need all unspent transaction for given wallet address.
I am looking into it thanks.
mmh, https://tapi.qbit.ninja/balances/n3d6Veyd7AsK236YPmuvQezrT8Yhd4DjpF?unspentOnly=true seems to have history
Ok, so your problem is that the balance selector/scriptPubKey you are giving me do not match the address you provided, check
http://tapi.qbit.ninja/whatisit/n3d6Veyd7AsK236YPmuvQezrT8Yhd4DjpF
I think you are wrong in your derivation somehow.
Tomorrow i will check again and will send proper detail for key .
i have change some code and now it work perfect. Thanks.
Hi Nic,
I have check the nbitcoin and may be some issue with indexing. https://live.blockcypher.com/btc-testnet/tx/10fa6d8fa236e424c073fda72873779507b7d67b14218b6ee1c9032525b0a34d/
This transaction is shows 6+ confirmation but currently when i use following code then it was not retrieve the transaction.
IDestination userUniqueKey = masterPubKey.Derive((uint)9); (this is my wallet index) BalanceSelector balanceSelector = new BalanceSelector(userUniqueKey.ScriptPubKey); BalanceModel transactionHistory;
transactionHistory = client.GetBalance(balanceSelector, true).Result;
Also let me know this issue arise with live environment?