Questions tagged [balance]

Current amount of currency units (bitcoins, ppcoins, real money, etc.).

Filter by
Sorted by
Tagged with
27
votes
1answer
12k views

How is a wallet's balance computed?

I am wondering on how a wallet's balance is computed. Basically, from what I've read I assume that you look back at all transactions involving all the keypairs of a given wallet. Adding up all the ...
20
votes
2answers
5k views

The Bitcoin.it wiki says addresses do not carry balances...but all info suggests otherwise

The Bitcoin wiki states, "Addresses are not wallets nor accounts, and do not carry balances." Yet, there's a zillion articles online about Bitcoin address balances, the Bitcoin blockchain explorers ...
20
votes
5answers
14k views

How does the network know my current balance?

Maybe I haven't yet fully understood how transactions work. And if so, please forgive me my stupid question. But I assume it to be "just" a digitally signed message like "send 1 BTC to ...
14
votes
2answers
3k views

Is my account balance publicly visible?

If I'm sending someone my wallet address, am I making my account balance visible to him? As far as I understand, all transactions are public, which means that if I know an address, I can reconstruct ...
11
votes
2answers
3k views

How to get balance from a specific address in bitcoinj?

I'm trying to get the balance of a specific address in a wallet by using bitcoinj, but I don't know how. Can someone help me? Thanks in advance!!
8
votes
2answers
6k views

How to retrieve all addresses with non-zero balance and their balances?

I'm looking for a way to retrieve all address balances of addresses with a non-zero balance in the blockchain. Is there a software tool that can calculate the balances in an accessible format? Or ...
8
votes
1answer
2k views

Wallet balance zero after restoring wallet.dat

I recently restored my wallet.dat file from another machine. The wallet.dat came from a Linux machine (debian), and was restored to a Windows bitcoin install. After restoring I can see the correct ...
8
votes
4answers
19k views

How to check Bitcoin wallet balance without any API

I am building an application and that will involve large set of bitcoin wallets and need to keep on checking for balance. I don't want to use any third party APIs as they all have hourly/secondly ...
8
votes
3answers
16k views

Is it possible to use xpub address to monitor balance from previously generated addresses?

I'm trying to find a way where I can view balance of my ledger nano s wallet without always attaching it to computer all the time. I found something called xpub address which allows me to generate ...
8
votes
2answers
657 views

How can I have friend to send me money without possibility to see my balance?

How can I have friend to send me money without possibility to see my balance? When I give him address where to send bitcoins, he can use e.g. https://blockchain.info or http://bitref.com/ to find ...
8
votes
3answers
1k views

Why are balances not in the blockchain?

Currently one needs to traverse the full blockchain to determine the balance of a certain address. Wouldn't it be much more efficient to include the new balance along with each transaction? That way ...
7
votes
2answers
4k views

Where is my bitcoin balance stored in the blockchain?

This is possibly a duplicate but, since I am a Bitcoin dummy I cannot find it. Anyhow; as I understand (and I will make some assumptions here), a block in the blockchain contains one or more ...
7
votes
2answers
3k views

Calculating address balance

Is there some method how you can calculate the balance of an address without resorting to web-based API's? When I import a private key the rescanning of bitcoind takes hours. I know to get a balance ...
6
votes
3answers
5k views

Checking/polling a balance of an address in Electrum via the command line/RPC

Suppose, I've dynamically -- via the command line/RPC -- created an address or payment_query in Electrum. And saved its details in a database along with the amount of bitcoins I expect to receive. ...
6
votes
3answers
7k views

Is there a way to pay my credit card balance with bitcoins?

So imagine that I have 200 USD on my credit card balance from a bunch of small purchases and bar drinks and tips that I want to pay using bitcoins. I know that I can but gift cards from gyft or do ...
5
votes
3answers
5k views

After sending some bitcoins, why do I have zero available to spend when I clearly didn't send my entire balance?

With some of the clients I use regularly (Multibit, Bitcoin for Android), I've noticed that, after I send bitcoins to an address, I have 0 BTC available to spend despite having perhaps a several ...
5
votes
2answers
2k views

Is there any tool available that can tell me the balance of bitcoin address on specific date?

Is there any tool available that can tell me the balance of bitcoin address on specific date? Like, what was the balance of 1XXXXXX on Jan 1st 2016? Looked up insight: seems not available.
5
votes
2answers
161 views

Can failed Transactions figure out which Channel is exhausted?

According to information in this LND PR the sender of an TemporaryChannelFailure can be determined: In many cases it is impossible for the sender to determine which of the two nodes in a pair is ...
5
votes
2answers
12k views

How to know balance in Ledger Nano S?

Ledger wallets have a single static address where to send BTC to, but when looking at the details of the transactions, it is always recorded as different receiving addresses. Looking up the static ...
4
votes
2answers
749 views

Bitcoin-cli how to get balance of a wallet on different node?

I am making a bitcoin mobile application, and I an trying to get the balance of a wallet that is on the mobile phone, from a daemon that is running on a separate node. The mobile wallet is connected ...
4
votes
1answer
1k views

What's the probability of vanity pools causing RIPEMD-160 (public key hash) collisions?

As Bitcoin vanity pools become more popular, the possibility of using that power to derive another person's Base58 public key hash becomes slightly more likely. I'd like to know if anyone has done ...
4
votes
1answer
4k views

How does Bitcoin keep track of account balances?

I downloaded the latest bitcoin client and am waiting for it to connect. How does it remember how much money a person has? Do I create an account and the balance is associated with the account each ...
4
votes
1answer
618 views

What is the Big-O complexity to retrieve the balance for a user?

Here is the Q/A related to: How is a wallet's balance computed?. Based on this: [Q] What is the Big-O complexity to retrieve the balance for a user? Is it O(n), so basically do I have to iterate ...
4
votes
2answers
2k views

Why does blockchain.info show a different balance from bitcoin-qt?

I just created a wallet on blockchain.info by importing my wallet.dat from Bitcoin-QT. My Bitcoin-QT shows a balance of 3.991 BTC, while blockchain.info shows a balance of 3.016. Where does the ...
4
votes
4answers
4k views

How do you get the balance of an address in your wallet using the rpc interface?

The current rpc interface only allows you to see either 1. The balance of the entire wallet 2. How much was received by an address (which is okay... if you never spend) Basically, I want to know how ...
4
votes
1answer
417 views

How many BTC addresses have balance in them?

Of all the possible BTC addresses, how many have balance in them? And what percentage of the total possible addresses is that?
4
votes
1answer
964 views

How to query all utxos of an address from a full node?

I am new in the blockchain field, and I am trying to build my own block explorer from scratch to really learn about Bitcoin. I am currently running a full node in a raspberry pi, and I have already ...
4
votes
3answers
4k views

How to get the bitcoin balance of a public key in C#?

How can I get the bitcoin balance of a public key in C#? E.g. for this public key: 1FqLoEpbQpMxow5bqEPpFbPVnBEbFcsg3J How can I get its balance in C#?
4
votes
3answers
6k views

Calculating "total received" and balance by an address

This is something which I think should be simple but it's driving me crazy. See for example this list of transactions associated with an address: https://blockchain.info/address/...
4
votes
1answer
1k views

Bitcoinj always gets 0 balance

I am trying to use Bitcoinj for my app. I am using regtest mode. I have a balance of 42 BTC on my account: bitcoin-cli -regtest getbalance mirko3 -> 42.00000000 My code follows: public class ...
4
votes
1answer
410 views

How to get bitcoin P2SH (3*) address balance with bitcoind

i'm trying to understand how to calculate/obtain balance of a P2SH address added to my running bitcoind with "addmultisigaddress..." and that is properly displayed by the command "...
4
votes
2answers
5k views

Is there an Android app that will scan a QR code and show the balance?

What I'm looking for is an app that lets a person scan a QR code containing a Bitcoin address and then see the balance and transaction history for that address. For a specific use case, a mobile ...
4
votes
4answers
8k views

How can I check a public master address balance?

I have an extended public key, I need to check it's balance (I have no connection to wallet), is there a third party service for that ? Edit: This is not a bitcoin address. This generates multiple ...
3
votes
2answers
853 views

What is the difference between wallet balance, local balance and remote balance in the Lighting Network?

I am having a hard time understanding the difference between the different "balances" in the Lighting Network. For example, I am running an LND node and I have the following balances: $ ...
3
votes
3answers
17k views

How to check about 10 million bitcoin addresses?

A few years ago I deposited a specific amount of bitcoins into an address and wrote that address/private key down. I lost the last four characters of the address. I counted that each character can be ...
3
votes
1answer
276 views

API for large number of queries to different addresses every few minutes

I have an application that needs to makes queries to get address balances and transaction data from Bitcoin. What are some possible solutions to this? It would be great if I didn't have to manage a ...
3
votes
2answers
848 views

How to get historical balance of a Bitcoin address at a particular block number or date?

I would like to get the balance of a Bitcoin address at a particular block number or date. Is there any way to retrieve this data from JSON-RPC? Alternatively, is there any API or blockchain ...
3
votes
2answers
102 views

What's an efficient model for redistribution of coins between wallets?

Let's say I have 50 addresses which have an average of 0.5 BTC. Some have two or three times the average balance, while others have less than 0.1% of the average. Many times per day an address is ...
3
votes
2answers
2k views

Get address balance in Java

I'm a merchant that is currently developing program that I will use for receiving transactions for my business. I would like my program to be able to check how much Bitcoin the address sending to me ...
3
votes
1answer
747 views

How to find the wallet balance?

I'm trying to find the balance of specific addresses in a wallet. I basically have the master key which I use to generate addresses but I wonder, is it possible to find the derived addresses that have ...
3
votes
1answer
5k views

My wallet balance says I have 12 mBTC but only allows me to send 2.63 mBTC. How can I fix this?

I have 12mBTC but when I try to send a transaction, after I enter the amount (allocating enough for fees) Electrum says that I have only 2.63 mBTC. When I go back to check, every transaction I ...
3
votes
1answer
396 views

How to programmatically determine the number of bitcoins ever deposited to a given address?

I am building an application for which I wish users to be given a unique address to which they can freely deposit funds into their account. Meanwhile, I want to be able to both track their balance and ...
3
votes
0answers
49 views

How to approach building a custom UTXO index on top of a full-node

I want to avoid physically importing addresses into a wallet. I want to write a UTXO indexing system on a per-address basis. I often wonder how a wallet can keep track of all of its addresses UTXOs, ...
2
votes
1answer
337 views

How is the balance of a Bitcoin address quickly calculated?

For what I understand, the balance of a Bitcoin address is the total sum of UTXOs of that address in the entire blockchain. The current size of the blockchain is around 350GB. How is the total sum of ...
2
votes
1answer
246 views

Where is the change from the output stored in?

I'm learning that Bitcoin doesn't have a way to represent the account balance, but it's, rather, a sum of UTXO owned by the users of the private key. Then where is the change from the output stored? ...
2
votes
2answers
62 views

How do Bitcoin balances work when an address is controlled by multiple parties together?

user1, pubkey1, 1.1 BTC user2, pubkey2, 1.2 BTC user3, pubkey3, 1.3 BTC user4, pubkey4, 1.4 BTC user4 sends 0.4 BTC to a 2-of-3 multi-sig account controlled by user1, user2 and user3 using P2SH. The ...
2
votes
2answers
890 views

How do I figure out the balance of an individual address on Bitcoin for Android?

I have just installed the bitcoin wallet for android on my device and created two addresses. I transferred some BTC to one address and some to the second one. I thought the wallet will show the ...
2
votes
3answers
3k views

How address balance is calculated?

It does not seem practical to scan every transaction on a block chain to determine the balance for an account. As the block chain grows this seems even more difficult and resource consuming. Perhaps ...
2
votes
1answer
1k views

Why 'bitcoin-cli getreceivedbyaddress ...' always returns 0?

I've already synchronized about 400.000 blocks, but every time I'm trying to get balance for specific address, e.g. first coinbase address - link: $ bitcoin-cli getreceivedbyaddress ...
2
votes
1answer
342 views

What is the easiest way to check what was the balance of address X at block Y? (without 3rd party services)

I need to have a possibility to check balance on every address. So far I tried used getreceivedbyaddress, but as far as I understand with this command I can check only addresses which I have in my ...