MetacoSA / QBitNinja

An Open Source and powerful blockchain API
MIT License
68 stars 42 forks source link

whats wrong with api.qbit.ninja #108

Closed ragekillen closed 4 years ago

ragekillen commented 4 years ago
var client = new QBitNinjaClient("http://api.qbit.ninja/", Network.Main);

var balanceModel = await client.GetBalance("3BvV9TgmiN8UEtwdE6Uk893GiaAYsibZLn", false);
     if (balanceModel.Operations.Count > 0)
     {
           MessageBox.Show(balanceModel.Operations.Count.ToString());
     }
           MessageBox.Show(balanceModel.Operations.Count.ToString());

this returns 0 as the balance

but going to here http://api.qbit.ninja/balances/3BvV9TgmiN8UEtwdE6Uk893GiaAYsibZLn?unspentOnly=true

we can see 1 result with the amount being 1350000

NicolasDorier commented 4 years ago

probably a bug on your side: No problem on the restuls

https://api.qbit.ninja/balances/3BvV9TgmiN8UEtwdE6Uk893GiaAYsibZLn/summary https://api.qbit.ninja/balances/3BvV9TgmiN8UEtwdE6Uk893GiaAYsibZLn?unspentOnly=true https://blockstream.info/address/3BvV9TgmiN8UEtwdE6Uk893GiaAYsibZLn