How check bitcoin balance with QBitNinja client without own node?

2.1k Views Asked by At

Can i check bitcoin balance by address with QBitNinja client without my own node?

    public static void Main(string[] args)
    {
        var client = new QBitNinjaClient(Network.TestNet);
        var address = new BitcoinPubKeyAddress("1May3uZes7Qh629mPG8WXZbMjhZQJ6QeRK");
        var balance = client.GetBalance(address).Result;
    }
2

There are 2 best solutions below

0
On

I resolve it by using QbitNinja public nodes

    public static async Task Main(string[] args)
    {
        var client = new QBitNinjaClient("http://api.qbit.ninja/", Network.TestNet);
        var address = new BitcoinPubKeyAddress("1May3uZes7Qh629mPG8WXZbMjhZQJ6QeRK");
        var balance = await client.GetBalance(address);
    }
1
On

No. The readme specifies BitCoin Core, synchronized (so a full node), as a pre-requisite. The Setup the indexer section also states that it listens to a full node.