Questions tagged [bitcoin]

GENERAL BITCOIN QUESTIONS CAN BE ASKED ON https://bitcoin.stackexchange.com Bitcoin is a peer-to-peer digital currency with no central authority. Transactions are managed entirely by the network. Please ask only programming questions about Bitcoin.

is a 1st generation, open source, peer-to-peer digital cryptocurrency and a distributed payment network with no central authority. Transactions are managed entirely by the network in a decentralized manner. These transactions are verified by network nodes through the use of cryptography and recorded in a public distributed ledger called a .

Bitcoins are created as a reward for a process known as mining. They can be exchanged for other currencies, products, and services. As of February 2015, over 100,000 merchants and vendors accepted bitcoin as payment.

The official website of is Bitcoin.org

There's also a Bitcoin StackExchange site that's dedicated to Bitcoin.

1807 questions
177
votes
1 answer

Query LOCAL Bitcoin blockchain with C# .NET

I am trying to check the balance of a given Bitcoin address by using ONLY the locally stored blockchain (downloaded via Bitcoin Core). Something similar to this (by using NBitCoin and/or QBitNinja), but without needing access to the network: private…
rvnlord
  • 2,728
  • 3
  • 14
  • 22
126
votes
7 answers

Get bitcoin historical data

I want to do my own bitcoin chart. Would you know any reliable way to retrieve bitcoins historical price data? Is there any way to retrieve it using REST? I saw Bitfloor, which supports REST, but it is not returning any useful value, it has a…
Cod1ngFree
  • 1,813
  • 5
  • 19
  • 32
39
votes
8 answers

RegEx to match Bitcoin addresses?

I am trying to come up with a regular expression to match Bitcoin addresses according to these specs: A Bitcoin address, or simply address, is an identifier of 27-34 alphanumeric characters, beginning with the number 1 or 3 [...] I figured it…
federico-t
  • 11,157
  • 16
  • 58
  • 108
29
votes
8 answers

Byte array to Hex string conversion in javascript

I have a byte array of the form [4,-101,122,-41,-30,23,-28,3,..] which I want to convert in the form 6d69f597b217fa333246c2c8 I'm using below function function toHexString(bytes) { return bytes.map(function(byte) { return (byte &…
Actung
  • 978
  • 1
  • 10
  • 17
26
votes
3 answers

(bitcoin) Calculate hash from getwork function - how to do it?

when I call getwork on my bitcoind server, I get the following: ./bitcoind getwork { "midstate" : "695d56ae173bbd0fd5f51d8f7753438b940b7cdd61eb62039036acd1af5e51e3", "data" :…
Anon21
  • 2,545
  • 6
  • 31
  • 43
25
votes
2 answers

What's the difference between distributed hashtable technology and the bitcoin blockchain?

This question could go into a bitcoin forum but I am trying to understand from a programming point of view. There are technologies used for distributed storage, like distributed hashtables (say kademlia or similar). How is the bitcoin blockchain…
transient_loop
  • 5,144
  • 12
  • 46
  • 95
20
votes
4 answers

How do I generate a QR code for a Bitcoin address with amount?

The closest I've gotten is from blockchain.info https://blockchain.info/qr?data=1Agb153xWsbqS9vt8gP4vBFKHkAchLMdSX&size=200 I can't find any documentation for other parameters like 'amount' though? I did find a service that does a generate a QR code…
magician11
  • 3,079
  • 5
  • 20
  • 34
18
votes
2 answers

Implementing Bitcoin and java.util.Currency

I'm trying to add bitcoin as a currency to display on my site. I've got exchange rates and everything, but I keep getting an IllegalArgumentException whenever I use java.util.Currency.getInstance("BTC"). This makes sense since it's not included in…
tedski
  • 2,253
  • 3
  • 23
  • 47
16
votes
4 answers

See foreign bitcoin transactions

I'm trying to get a transaction info using bitcoind gettransaction \ 9962d5c704ec27243364cbe9d384808feeac1c15c35ac790dffd1e929829b271 but I'm receiving error: {"code":-5,"message":"Invalid or non-wallet transaction id"} How to see a transaction…
asv
  • 183
  • 1
  • 5
16
votes
4 answers

Chrome extension: bitcoin wallet

Could a chrome extension be made that maintains a bitcoin wallet while also making it easy for web stores to integrate a one-click purchase experience. Suppose a button on a webpage is clicked. Is it possible for that to trigger a function call to…
user782220
  • 9,199
  • 16
  • 64
  • 127
15
votes
7 answers

Bitcoin address form validation JavaScript and PHP

I've seen a few Bitcoin Address form validation scripts for various languages, but surprisingly can't really find anything for two common web languages, Javascript and PHP. Here's one for Python, but is there one for PHP and/or JS? from hashlib…
tim peterson
  • 22,033
  • 50
  • 162
  • 279
12
votes
7 answers

How do I make bitcoind listen on 0.0.0.0:8332?

I'm running bitcoind on one machine and would like to control it from another (using python and the JSON RPC interface). ~/.bitcoin/bitcoin.config on the bitcoind host…
Brent.Longborough
  • 8,787
  • 10
  • 38
  • 60
12
votes
1 answer

How to set fee in raw bitcoin transaction using btcutil

According to the docs (http://godoc.org/github.com/btcsuite/btcrpcclient) the fee can be set by using SetTxFee(fee btcutil.Amount) // hard coded0.0006 BTC I set the fee to 0.0000016 bitcoin/kilobyte and do as…
Amidii
  • 329
  • 2
  • 16
12
votes
5 answers

Are there any Bitcoin Payment solutions for Ruby?

Working in Ruby (and perhaps Rails). Are there any ways of accepting and managing payments in Bitcoin for Ruby or Rails?
B Seven
  • 39,557
  • 59
  • 208
  • 346
12
votes
1 answer

Blockchain API to determine transaction confirmations

I am trying to identify whether a transaction in the bitcoin blockchain has been confirmed or not. I have accessed a JSON representation of the transaction from blockchain.info using this url:…
Billy Moon
  • 52,018
  • 22
  • 123
  • 222
1
2 3
99 100