Skip to content

QBitNinja adn NBitcoin not working #71

@TarasKryvko

Description

@TarasKryvko

I have lots of user addresses, and when i want to check address transaction i use QBitNinja like this:

       foreach (var uAddrModel in userAddresses)
        {
            BitcoinAddress btcAddr = BitcoinAddress.Create(uAddrModel.Address, CurrentBtcNetwork);
            BalanceSelector balSel = new BalanceSelector(btcAddr.ScriptPubKey);
            BalanceModel btcModel = client.GetBalance(balSel, false).Result; //here i get result which says 
            //that balance does not have operations, but i just recharged this specific address


            if (btcModel.Operations.Count == 0)
            { continue; }
            foreach (var operation in btcModel.Operations)
            {
                if (operation.Amount <= 0)
                { continue; }
                bool isApproved = await CheckIfTxApprovedAsync(operation.TransactionId.ToString());
                if (!isApproved)
                {
                    isSuccess = await ApproveOperationAsync(operation, uAddrModel);
                }
            }
        }

The problem is not with my code, it worked ok, but in some reason today it is not working, i really do not know what to do, and also i do not know other ways to send bitcoin.

Also when i want to send bitcoin i get this very strange result
nbitcoin issue

Please help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions