Hot answers tagged

13

By default, Bitcoin Core creates 100 addresses the first time it starts, and tries to keep 100 not-yet-used keys in wallet.dat 'keypool' (when you unlock the wallet to make a payment it will generate more). So you do not need to backup continuously. The 'getinfo' RPC command will tell you the time when the oldest not-yet-used key was generated ('...


4

Your wallet keeps all private and public keys it ever used indefinitely. You do not lose coins on old private keys when you give out new addresses. It is just a privacy measure to give out new addresses for each transaction. It prevents your business partners from knowing about other transactions you have received and sent. All addresses can be used ...


3

If you call getnewaddress 100 times (via RPC for bitcoind, in the debug console for Bitcoin-Qt), the key pool is flushed. After that, you can request one more new address and send all your funds there.


3

That's a tricky one. If you haven't modified the 'keypool' parameter then your key pool will contain 100 "unassigned" addresses. These addresses are controlled by your wallet but remain in a latent state in your client until you explicitly request for a new address. The thing is that every time you request for a new address, a new one will be added to ...


3

Providing that you're referring to BitcoinCore, and that by "not being used right now" you mean there's no transaction associated with them yet, you can use this command to list them: bitcoin-cli listreceivedbyaddress 0 true The parameters are: minconf = 0 includeempty = true


2

What is the maximum number of keys/addresses that can be created for a single wallet? Phrased another way, what is the largest value one can safely put for the keypool option in bitcoin.conf? The type of that parameter is int64_t so the maximum value is 2^(64-1)-1. In practice, you can put any number you want and it should not make the software break. ...


2

What I ended up doing was more or less what Pieter Wuille suggests: write a small shell script to call bitcoind getrawchangeaddress more than 100 times. (Using getnewaddress would have cluttered my list of receiving addresses.)


2

Most people don't need to use keypoolrefill. Bitcoin Core tries to fill the keypool to its configured maximum size whenever you take an address from the keypool. (It does not wait until the keypool is empty before regenerating it.) However, it isn't possible to add keys to the keypool unless the wallet is unlocked with walletpassphrase. So if you call ...


2

The current wallet.dat file increases because you add new keys when you refill your keypool (get new addresses) or if you receive or send transactions. Mind that every wallet-relevant transaction is stored (together with some metadata) in your wallet.dat.


2

The page you are referring to on the Bitcoin wiki is pretty dated and doesn't really relate to current behavior in Bitcoin Core. Be aware that a lot of the wiki is like this. "Default key" isn't a phrase in common use, I can't fathom what that page could have been talking about in the context of Bitcoin Core. Reserve keys and the keypool are essentially ...


2

The value 1392447127 is exactly Sat, 15 Feb 2014 06:52:07 GMT in Unix timestamp check it here : http://www.onlineconversion.com/unix_time.htm keypoololdest gives the unix timestamp of the oldest key in the key pool (which stores unused keys). This timestamp can be used to check if a wallet backup still covers all your used keys or a new one needs to be ...


2

Use validateaddress [address]. It will give you all information about that address, including whether it has the private key (it will "ismine" : true and "iswatchonly" : false.


2

How many keys can be generated by a deterministic wallet? Effectively infinitely many. The same as a non-deterministic wallet which just keeps generating random private keys. There is a limit, 2^256, but you are never going to reach that. It is effectively infinite. Is it possible to list all keys (public keys, to avoid leaking critical information) in ...


2

The keypool is ordered, not just a set of keys being watched. This allows for addresses to be given out in derivation order, as well as maintaining the gap limit. When an address is used, all keys that come before it will also be marked as used. This is done to ensure that already used addresses are not accidentally reused. So when you give out and use a ...


2

keypoolsize only shows how many keys are currently in the keypool. It does not reflect the maximum size of the keypool. The keypool=<n> option does not automatically fill the keypool to that size, you will need to refill it by using keypoolrefill. If after keypoolrefill you still do not see a larger keypool, then that means your bitcoin.conf file is ...


1

Unlock your wallet (using walletpassphrase) and run keypoolrefill as the error message says. generate and setgenerate requires keys from the wallet, and if the keypool is empty, they won't work.


1

New public and private keys are pre-generated and stored in a queue before use. This pooling feature was added so backups of the wallet would have a certain number of keys that would be used in the future. By default, the number of entries in the queue is 100. A command line option allows a greater or lesser number of keys to be maintained in ...


1

Bitcoin clients generate a number of addresses in advance for backups to remain complete for some amount of future use. E.g. Bitcoin Core creates 100 addresses in advance, I'd expect bitcoinj to do something similar.


1

Andrew answered well, but let me add a few details. You can generate so many private keys that you will die before you exhaust the pool available to you. The popular android wallet has made a handy tool that will generate all the private keys from a word seed and display them. You can keep generating keys, hundreds at a time until your browser crashes. ...


1

A long sequence of private keys can be computed from the seed in a standard way. The new client will import those keys for your use, while computing the corresponding addresses and checking the block chain to see which ones have been used. When it finds many keys in a row that haven't been used (perhaps several hundred; this number may be configurable in ...


1

Keypool keys are already in wallet.dat. That's the whole point of the keypool. When you run getnewaddress, you get the address corresponding to the oldest key in the keypool, and a new key is generated and added to the keypool to take its place. So if your hypothesis is right, the key is still in the keypool, and if you execute getnewaddress again, you ...


1

The keypool, as the name suggests, is a pool of keys stored in your wallet.dat file for various functions including: change addresses new addresses By default you'll have 100 keys. Each time you use a key for change or receiving, there'll be one less key in the pool. A new key is added to replenish the used key. The oldest key (from February 2014) ...


1

You have probably considered it already, but the only thing I can think of, is to create a new wallet. Make a new wallet, and get an address from it Backup your old wallet Delete the old wallet from the Bitcoin directory Start Bitcoin Core (it'll create a new wallet). Copy a receive address from the new wallet. Close Bitcoin Core Transfer the bitcoins ...


1

Consider using hierarchical BIP32 wallets. You can generate the addresses with various tools (e.g. sx) or natively in your web app. Then you can import the keys to your bitcoind node in order to manage them. If needed, you can have multiple bitcoind nodes and load-balance the keys among them (e.g. having X customers per node). The great advantage of BIP32 ...


Only top voted, non community-wiki answers of a minimum length are eligible