29 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,685
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

How much out of order are the blocks stored in the blk*.dat files?

1024. /** Size of the "block download window": how far ahead of our current height do we fetch? * Larger windows tolerate larger download speed differences between peer, but increase the potential ...
Nick ODell's user avatar
  • 29.3k
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,192
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,431
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
  • 18k
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

How to store data on the blockchain?

You could use the OP_RETURN operation in your pubkey script. It gives you 80 bytes of free data (I think it is upgraded from 40 bytes recently you could check). If you are a developer you could ...
Badr Bellaj's user avatar
  • 1,141
4 votes

Redeeming a raw transaction step by step example required

This is an excellent answer by amaclin and Wizard of Ozzie. I'd just like to add some more detail for the Wizard of Ozzie's transaction at blockchain.info. The correct input to the signature process ...
David I's user avatar
  • 141
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,529
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
  • 591
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

Where can I get all historical trades BTC price data?

You can also use their JSON API: http://bitcoincharts.com/about/markets-api/ to get updates to your already downloaded historical data.
fccoelho's user avatar
  • 211
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 to store data on the blockchain?

Bitcoin is for transactions, not storage. A bitcoin-derived system like Ethereum can be used to implement this. StorJ or FileCoin are special blockchain-like systems just for storage.
Max's user avatar
  • 171
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.3k
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

Can Bitcore decode a raw tx?

Bitcore makes it very easy to do this. Just use the Transaction constructor. var bitcore = require('bitcore') var txHexSerialized = "010000000...00000000"; var txDecoded = new bitcore.Transaction(...
morsecoder's user avatar
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

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