Skip to main content
Share Your Experience: Take the 2024 Developer Survey
28 votes

What is TxIn's sequence?

Note that the accepted answer is outdated. Currently, sequence numbers are mainly used for signaling RBF - replace-by-fee - that allows you to resend a transaction with a higher fee. See https://...
Karel Bílek's user avatar
  • 2,695
17 votes

Anyone know of an API I can get historical price time series for multiple coins

I am developing the ccxt cryptocurrency trading library, check it out on GitHub: https://github.com/kroitor/ccxt It is a library for cryptocurrency trading and e-commerce with support for many ...
Igor Kroitor's user avatar
10 votes
Accepted

Where can I find Crypto Coin data?

Acquiring Data You have two options here: Check out one of the data providers online. Quandl offers (mostly) free historical data for a variety of pairs and exchanges. Alternatively, if you have ...
deepbrook's user avatar
  • 1,672
9 votes
Accepted

How to get raw block data?

There's a boolean parameter to that RPC call that'll return it as a hex string representing the binary contents of the block. If verbosity is 0, returns a string that is serialized, hex-encoded ...
alcio's user avatar
  • 1,274
8 votes

How is the whitepaper decoded from the blockchain (Tx with ~1000x m of n multisig outputs)

This is a bash command that can also give you the file: bitcoin-cli getrawtransaction 54e48e5f5c656b26c3bca14a8c95aa583d07ebe84dde3b7dd4a78f4e4186e713 0 ...
Steven Roose's user avatar
  • 11.8k
8 votes

Anyone know of an API for RSI and other indicators?

I had the same problem, couldn’t seem to find a good API that supported most of the popular indicators, and at the same time covered all the exchanges. So I decided to start up a project for this. So ...
Emaix's user avatar
  • 91
8 votes
Accepted

What is the different between CompactSize and VarInt encoding?

There are two distinct variable-length integer encodings implemented in Bitcoin Core's serialization framework: The encoding used in the P2P protocol for the lengths of vectors (number of ...
Pieter Wuille's user avatar
8 votes
Accepted

Raw data vs information encoded in OP_RETURNs

The current Bitcoin P2P protocol has no concept of compression, though there have been some proposals to incorporate it. The transaction data is sent as-is. Some earlier discussion: https://lists....
Pieter Wuille's user avatar
7 votes
Accepted

Anyone know of an API I can get historical price time series for multiple coins

Found the data on crypto compare const endpoint = 'https://min-api.cryptocompare.com/data/histoday?aggregate=1&e=CCCAGG&extraParams=CryptoCompare&fsym='+ ticker.toUpperCase() +'&limit=...
Vinnie James's user avatar
7 votes

Where can I get all historical trades BTC price data?

You might want to try http://www.cryptodatasets.com/ It has free raw data and sampled data from Bitfinex and HitBtc (currently). P.S. it's my website
MegaHotel's user avatar
  • 151
6 votes
Accepted

UXTO DB structure

Each entry in the new 0.15 format is defined as outpoint:coin, and has the following structure: Outpoint is formed by: key | tx_hash | index. Where the key corresponds to b'C', or 43 in hex. The ...
sr_gi's user avatar
  • 3,220
5 votes

Anyone know of an API I can get historical price time series for multiple coins

http://www.cryptocoincharts.info Advance API to more than 100 exchanges: cryptocurrency pricing, OHLC and volume data from multiple exchanges. BTC38, BTCC, BTER, Bit2C, Bitfinex, Bitstamp, Bittrex, ...
Gilgi's user avatar
  • 59
5 votes

Is it possible to download all blockchain raw data?

Any (full) Bitcoin client will download the entire blockchain. It's stored in files on disk which you can look at after it's been downloaded. The current blockchain size is 115 GB of raw data (the ...
Greg Hewgill's user avatar
  • 3,421
5 votes
Accepted

Are there any blockchain explorers that provide raw Tx data and block headers?

You can get this info from blockchain.info, by simply adding ?format=hexto the end of the relevant URL. For example, here is a recent block (height 509,244): https://blockchain.info/block/...
chytrik's user avatar
  • 18.3k
5 votes
Accepted

BIP324 encrypted packet structure

In the new P2P transport protocol proposed in BIP324, after the handshake (which among other things establishes encryption keys), packets have the following structure: A 3-byte length descriptor (...
Pieter Wuille's user avatar
4 votes

Anyone know of an API for RSI and other indicators?

You can calculate it yourself. Use an API to get the gains and losses over an period of 14 points and put it into the formula described here: http://stockcharts.com/school/doku.php?id=chart_school:...
futchas's user avatar
  • 141
4 votes
Accepted

What are the hashes in Unspent outputs?

tx_hash and tx_hash_big_endian are the transaction id of the transaction that this output originated from in little endian and big endian (reversed). tx_output_n is the number of the output in the ...
Mike D's user avatar
  • 3,569
4 votes
Accepted

Which blk*.dat file contains a particular block?

Is there a way to find out which blk*.dat file contains a particular block? We can't tell you which of your *.dat files contains block 478558 because there is no requirement that different nodes ...
RedGrittyBrick's user avatar
4 votes

Is there evidence for lack of stale blocks?

The average block propagation time actually used to be more than 15 seconds before 2016, see the "Block Propagation Delay History" Graph at the KIT statistics website. However, block latency ...
Lightlike's user avatar
  • 636
4 votes
Accepted

How much bitcoin in Canada?

How much bitcoin in Canada? That's a very interesting question: None of it. It isn't always possible to say that an address is based in Canada. Some Canadians might use wallets on mobile phones. If ...
RedGrittyBrick's user avatar
3 votes

Reliable, efficient way to parse the blockchain into a SQL database

You can always use BlockchainSQL Server for SQL querying the Bitcoin blockchain. The web version is free, the server is commercial. Disclaimer: I am the developer.
Herman Schoenfeld's user avatar
3 votes

How is the whitepaper decoded from the blockchain (Tx with ~1000x m of n multisig outputs)

The PDF uses Python uploader/downloader scripts present in the Bitcoin blockchain itself Those scripts are present at: uploader: tx 4b72a223007eab8a951d43edc171befeabc7b5dca4213770c88e09ba5b936e17 ...
Ciro Santilli OurBigBook.com's user avatar
3 votes
Accepted

Why OP_RETURN should be used instead of raw data?

There are two reasons why you should prefer a scriptPubKey of OP_RETURN <data> over <data>. The first reason is that the non-OP_RETURN output is not prunable, and is actually anyone-can-...
Nick ODell's user avatar
  • 29.4k
3 votes

How can I get the list of all bitcoin transactions?

If you're looking for all BTC balances, this github repository looks useful. It would likely crash due to memory issues, but could show you all transactions using the "transactions" argument. https://...
Nicolas Lopez's user avatar
3 votes

How can I get the list of all bitcoin transactions?

There is a new tool by a Princeton research group that does exactly this: https://github.com/citp/BlockSci
Benedikt Bünz's user avatar
3 votes
Accepted

Transaction outputs with value 0

Outputs with 0 value are allowed by the protocol. It is a feature that allows for provably unspendable outputs to not have to have any value that then becomes burned. However 0 value outputs are not ...
Ava Chow's user avatar
  • 70.8k
3 votes
Accepted

Are the blocks in blkxxxxx.dat files ordered by block height?

No, they are in the order by which your node received the blocks. This can be in any particular order as nodes receive blocks out of order during the initial sync. Furthermore, some nodes will receive ...
Ava Chow's user avatar
  • 70.8k
3 votes

How to download just the blockheaders for the blockchain

You can make it with getheaders p2p message, will return headers of blocks in a range. Remember of handshaking and setting tx-relay to false.
Davidson Souza's user avatar
3 votes

Analyse huge amount of blockchain data

With almost 2k transaction per block, it will take a lot of queries per block. The getblock RPC supports a verbosity=2 argument which returns all the transactions in the block as JSON objects, so you ...
stickies-v's user avatar
2 votes

How can you tell if you're at the end of an incomplete blk*.dat file?

It is perfectly possible that *.blk files contains gaps of zeroes, or even partially written blocks. In modern versions (since 0.10 or so) this won't happen during normal operations, but it can't be ...
Pieter Wuille's user avatar

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