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.

1770 questions
180
votes
2 answers

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
  • 3,487
  • 3
  • 23
  • 32
128
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,873
  • 6
  • 21
  • 33
46
votes
10 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
  • 1,438
  • 1
  • 13
  • 18
46
votes
10 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
  • 12,014
  • 19
  • 67
  • 111
27
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,984
  • 15
  • 58
  • 117
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,961
  • 6
  • 37
  • 46
19
votes
3 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
  • 4,234
  • 6
  • 24
  • 39
18
votes
1 answer

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,271
  • 3
  • 27
  • 48
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
  • 10,677
  • 21
  • 72
  • 135
16
votes
3 answers

How many combinations does SHA-256 have?

By using an online tool and wikipedia I found out that every sha-256 encrypted string is 64 chars longs containing numbers and characters. Hence I assumed that there are 34^36 combinations ( 2^216 simplified by an algebra calculator ). After doing…
WoffeLL
  • 163
  • 1
  • 1
  • 4
16
votes
1 answer

How to extract all used hash160 addresses from Bitcoin blockchain

I have all 150GB Bitcoin blocks now what? How to open them and read them in Python? I need to extract all used hash160 so far I tried to open them with Berkeley DB but no success it seems these files aren't Berkeley DB and what is the difference…
John Kotkin
  • 191
  • 1
  • 7
15
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
  • 181
  • 1
  • 5
15
votes
8 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
  • 23,653
  • 59
  • 177
  • 299
14
votes
1 answer

Javascript Websocket Subscribe to Channel

I am trying to subscribe to channel using native WebSocket in vanilla javascript (without using any library) [as I have just read it's possible but I am not sure - please correct me if I'm wrong]. I am trying to get the latest price of bitcoin let…
senty
  • 12,385
  • 28
  • 130
  • 260
14
votes
3 answers

How to watch for the bitcoin transactions over blockchain via nodejs?

I am using this bitcore npm package. https://bitcore.io/api/lib And i want to monitor all the transactions over the blockchain, and read the input address, output address and amount associated with that transaction. But i am unable to find the…
codeofnode
  • 18,169
  • 29
  • 85
  • 142
1
2 3
99 100