Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [bitcoind]

This tag should be used for questions related to bitcoind, the command-line software for Bitcoin Core. It stands for "Bitcoin Daemon" where a daemon is any computer process which runs in the background ("service" in Windows terminology).

34
votes
3answers
22k views

How can I run bitcoind in pruning mode?

I read this comment: You could consider running a pruning node, which is practically the same as a full node (including security), except it throws away some of the old history. Version 0.11 ...
10
votes
1answer
3k views

How can I setup Bitcoin to be anonymous with Tor?

Bitcoin is billed as many things, among them its anonymity is highly regarded. While it is true that a transaction does not identify a user or wallet, recent news shows that there is the potential for ...
17
votes
4answers
11k views

How can I create a multi signature 2-of-3 transaction?

Can somebody help me with step-by-step list of how to create a multi signature 2-of-3 transaction?
23
votes
5answers
27k views

How to get an address's balance with the bitcoin client?

I want to see the balance of some address using bitcoind. I set txindex=1 and did a -reindex to get all transactions indexed. But still, there doesn't seem to be a way to get balances of an address. ...
12
votes
2answers
5k views

How to findout the sender of a transaction

How do I find out which addresses are the inputs of a given transaction, given its transaction ID? I know there is a way, as satoshidice.com uses this. I would like to do this with own software and ...
4
votes
3answers
554 views

Why does Bitcoin uses a Script language?

From what I heard is that Bitcoin use Script to verify transactions (I'm probably wrong). Wouldn't be sufficient just signing the transaction with the private key and append the signature to the ...
32
votes
10answers
24k views

How to check if the block chain is up to date using bitcoind or json-rpc?

I read the full api method list and did not seem to find one. I suppose there is no command specifically for that purpose, so what is the general way of doing this? I would consider checking the ...
27
votes
5answers
9k views

In getrawtransaction, what is the vout integer in the vin list?

I'm working on trawling the bitcoin transactions coming in via getrawtransaction. I haven't been able to find the neccessary documentation to describe the vout integer in the vin array: {"txid"=>"...
13
votes
2answers
14k views

How to get all addresses - including the “change” addresses - from bitcoind?

I want to get all my addresses - including the auto-generated "change" addresses - from a running bitcoind somehow. I haven't been able to do it in a simple way. "getaddressesbyaccount" and all the ...
31
votes
6answers
22k views

How does one attain 1,000+ connections like blockchain.info?

At this moment, blockchain.info has over 1,900 nodes connected to their bitcoin client. I have been running an m1.small ubuntu 12.04 server and bitcoind for ~4 days straight now with no reboots. My ...
15
votes
1answer
10k views

How do I use walletnotify?

I have bitcoin daemon and I want to use the walletnotify option with a json-rpc call. Some of the examples use a "transaction.sh" file for walletnotify. What is it for? What do I have to write in ...
14
votes
2answers
6k views

How do I detect a double-spend?

As a vendor, how do you detect a double-spend? I'm happy to tell end-users that I'm proceeding with a transaction on 0 confirms, simply assuming everything is fine. I'm selling physical goods and so I ...
7
votes
3answers
4k views

What is a step by step way to insert data in OP_RETURN?

I was following https://bitcointalk.org/index.php?topic=453086.0 for creating a message in OP_RETURN. I am able to decode my raw transaction, but on signrawtransaction it gives error: {"code":-22,"...
13
votes
3answers
4k views

Can Bitcoin-Qt be configured to trim the blockchain?

I run Bitcoin-Qt and Bitcoin Armory on a laptop. I don't have the space to store the whole 20 GB (or however big it is now) blockchain. I understand the need to run through the entire thing for ...
9
votes
2answers
3k views

Is there a way to change the wallet.dat location without changing the entire data directory?

I know that Bitcoin supports the -datadir command line option which specifies that the wallet.dat and blockchain should be stored in a custom location rather than %appdata%\roaming\bitcoin but is ...
13
votes
4answers
1k views

Does the original Bitcoin client scale to contain millions of addresses?

We use the standard client in our business. The wallet already contains about 25k addresses. Will the wallet remain stable after the number reaches 100k or a million addresses? I was told that all ...
15
votes
7answers
9k views

How to check Bitcoind block chain download progress level

I have installed bitcoind on ubuntu server, and when I run screen -x for btc it says error -10 blockchain is downloading. How do I know the progress level? currently 125600 blocks are downloaded, but ...
5
votes
2answers
4k views

Is there a light (SPV) version of bitcoin core (bitcoind)?

I'm trying to develop an SPV Bitcoin client which makes use of a library requiring bitcoin core (a running bitcoind service). However, from what I understand, Bitcoin Core is full node, meaning that ...
11
votes
2answers
4k views

What are the steps in building bitcoind on Mac OS X 10.6?

Following the instructions in build-osx.txt (which seem sadly out of date) leaves me without a file named libboost_system.a. Here is how I built boost: % cd boost_1_42_0 % ./bootstrap.sh % ./bjam ...
6
votes
4answers
6k views

Bitcoin is not connected in regtest mode

I am having trouble using regtest mode on Linux. Using pre-compiled version 0.9.2.1 for linux and starting regtest mode as instructed on bitcoin.org: <bitcoin-ver>-linux/bin/64>> ./...
4
votes
2answers
1k views

Insert data to transaction with OP_RETURN

This might be a possible duplicate with this. I want to know a proper way to insert additional string with OP_RETURN and retrieve the transaction from block chain and decode it accordingly. Thank ...
3
votes
2answers
1k views

How to get a history of incoming and outgoing transactions for a certain address?

Along with the history of incoming and outgoing transactions, how would I find the first block that that address appeared in (to find when the wallet was created)? I want to do this by parsing with ...
9
votes
2answers
15k views

All Bitcoin Public Keys with non-zero balance

I want to get a database or otherwise retrieve a set off all bitcoin public keys (not addresses) that have non zero balances. What would be the easiest way to do that? Is there an API that could do ...
6
votes
1answer
1k views

How can I find the “real” difficulty on testnet?

As is well known, testnet has a "20-minute rule": if no block is found within 20 minutes, the mining difficulty drops to 1 until a block is found. From some experimentation, it appears that bitcoind'...
3
votes
1answer
501 views

Format of a block key's contents in bitcoind's LevelDB?

I am trying to use bitcoind's LevelDB block index files (that are stored in blocks/index) to find the file (e.g. blk00029.dat) and byte position of specfic blocks. Thanks to questions What is the ...
8
votes
3answers
1k views

What's the best way for a website to detect payments from green addresses?

Does any proven third party code exist for this? Edit* To be more specific, what I haven't been able to find out is how to get the sender's bitcoin address when receiving a transaction. As far as ...
16
votes
2answers
8k views

What are the minimal system requirements to run a full Bitcoin node?

I want to build a low profile system running as a full Bitcoin node, i.e. just running Bitcoin Core 0.9+ and pretty much nothing else. What is the minimal system (in terms of power consumption) that ...
6
votes
3answers
7k views

How can I export all my private keys using bitcoind?

I know that PyWallet has a -dumpwallet but without using pywallet, how can I export all the addresses and privatekeys with the stock bitcoind? Is there an API command that lists all addresses held by ...
5
votes
1answer
2k views

What exactly are the rev00000.dat files?

I've been looking at the on disk structured generated by the standard bitcoin-qt client. It looks to me that the rev?????.dat files are reverse application for blocks? So I imagine every single spent ...
5
votes
2answers
3k views

Transaction fees and transactions with bitcoin-cli. Wallet address balance negative

I'm trying to make a bitcoin website and I tried to implement a sort of 'withdraw' button which would allow you to send your money in the wallet address to some other address. The problem I am facing ...
4
votes
1answer
3k views

What are some commonly used commands for Bitcoind shell command line?

I just installed the bitcoind daemon on my ubuntu, but i was wondering what are some of the most commonly used commands for bitcoind? Also is there a cheatsheet for this? thanks
5
votes
1answer
2k views

Is there a way to find how many nodes are there?

As a single bitcoind node I can only detect how many connected peers I have. Is there a way to have a vision of the whole bitcoin network?
17
votes
1answer
5k views

When should I use -reindex-chainstate and when -reindex

What is the difference between the options -reindex and -reindex-chainstate? Is one of the options faster? When should each option be used?
18
votes
1answer
3k views

How does the 'move' command work?

I have so far enjoyed the experience of learning about Bitcoins, mining, etc. I've setup a bitcoin daemon in hopes of developing a few apps and services in the near future. However, there is one thing ...
22
votes
1answer
22k views

What is the difference between the rpc port 8332 and port 8333?

What is the difference between the protocol and commands used on default ports 8332 and port 8333? From what I gather, port 8332 is the RPC port, it's "sensitive", only allowed by local host by ...
13
votes
2answers
9k views

Why doc says importing private keys is so dangerous?

There are a lot of applications when someone would like to import a private key. However in wiki documentation they say it is very dangerous: https://en.bitcoin.it/wiki/How_to_import_private_keys ...
15
votes
1answer
10k views

How to generate SegWit address

How do I generate a SegWit address using Bitcoin Core CLI? Also will I be able to redeem those outputs and send them to a "legacy" address? If so, will this second transaction be accepted by older, ...
13
votes
1answer
8k views

How to get a bitcoin address's balance?

I know blockchain.info has an API: https://blockchain.info/q/addressbalance/134dV6U7gQ6wCFbfHUz2CMh6Dth72oGpgH gets the bitcoin address's balance,but it's not open source and must connect to the ...
6
votes
3answers
2k views

How to know when a payment has been received by bitcoind?

I want to create a website which involves the creation of a new single-use address that a user would send bitcoins to. I'd like to know programmatically when the user has sent bitcoins to the address ...
7
votes
2answers
2k views

What is chainwork?

If I run the RPC call getBlock on the bitcoin-qt client it gives me field called chainwork containing a hash. I cant find any information what this value is about. Request: getblock ...
7
votes
1answer
3k views

How does the bitcoin network recover in case of a hash collision in the block hash?

A Bitcoin client has to download the whole blockchain from the P2P network in order to become a full node. A full node is able to determine, if a transaction in the network is valid or not. To ...
5
votes
3answers
5k views

How to pre-generate 100M bitcoin addresses? [duplicate]

What is the best method to generate large numbers of bitcoin addresses? I imagine something like the following would break bitcoind in some fashion: ./bitcoind keypool=100000000
5
votes
1answer
5k views

Transaction refund address

In the what’s new in Bitcoin Core 0.9.0 notes there is a reference to a refund address. I tried to look it up in the forums and the wikis but I came up with nothing. How can I set a refund address ...
2
votes
2answers
1k views

How trade engine works? [closed]

How cryptocoin trade engine works? Is there any open source project available other than buttercoin. I want to build a simple trade engine in ruby on rails for cryptocoins. what are the essential ...
10
votes
1answer
1k views

What is the difference between time, blocktime and timereceived?

What is exactly the difference between time, blocktime and timereceived in transaction information returned by Bitcoind JSON RPC API? For example: { "amount": 0.02, "blockindex": 45, "...
8
votes
1answer
3k views

How do I read peers.dat file to get a list of all peers seen or that bitcoind has connected to?

In version 0.8.6 of Bitcoin, I see that peers.dat file is a custom database format declared in db.h:317 (class CAddrDB) and defined in dh.cpp:485. Any ideas on how I could go about reading the data ...
6
votes
1answer
834 views

How to handle a ridiculous amount of receiving addresses?

By ridiculous I mean something absolutely absurd. 1 million+ addresses. Like say if Amazon had started to accept payments, how could they possibly keep up? Bitcoind probably can't keep up? How would I ...
6
votes
1answer
934 views

How to run bitcoind (command line client) without connecting to other nodes?

I'm running Abe to create a blockchain SQL database, so I don't want the Bitcoin client to touch my copy of the blockchain at the moment. But I would like to query the blockchain with the bitcoind ...
6
votes
2answers
2k 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 ...
3
votes
1answer
2k views

Error -25 when bitcoind sendrawtransaction

I am trying to send a bitcoin raw transaction, but always got such an error. what's the possible explaination? bitcoind --testnet sendrawtransaction ...