Skip to main content

Bitcoin Dataset

This is the Bitcoin chain dataset provided by Nodit Datashare. You can review the table structure of the loaded data along with the primary key and columns for each table. This information lets you understand the types and structure of data you can extract using Datashare.


Dataset

This is the Bitcoin chain dataset available in Nodit Datashare. Select the dataset you need to extract data, and refer to Data Schema for the schema of each dataset.

TableDescription
blocksBlock data
transactionsTransaction data
vinsTransaction input data
voutsTransaction output data

Data Schema

The data schema for each table is listed below. You can check the type and description of each column, the Unique Key for each table, and the filterable columns available for filtering.

blocks

Unique Key: block_height

Filterable Columns: None

ColumnTypeDescription
hashVARCHARThe unique identifying hash of the block.
block_heightBIGINTThe height value representing the position of the current block from the genesis block.
versionBIGINTThe protocol version that the block conforms to.
block_timestampTIMESTAMP(6)The time at which the block was created.
bitsVARCHARThe compressed representation of the target difficulty applied when mining the block.
nonceBIGINTA 32-bit integer value that miners repeatedly modify to find a valid block hash.
difficultyVARCHARThe difficulty level applied to mining the current block.
merkle_rootVARCHARThe root hash formed by combining the hashes of all transactions in the block in a tree structure.
transaction_countBIGINTThe total number of transactions included in the block.
transactionsARRAY(VARCHAR)A list of transaction IDs included in the block.
sizeBIGINTThe total size of the block data in bytes.
weightBIGINTThe weight of the block in weight units, calculated according to the SegWit specification.
previous_block_hashVARCHARThe hash of the previous block, forming the chain linkage structure of the blockchain.
median_timeBIGINTThe median of the timestamps of the previous 11 blocks, used as the network reference time.
stripped_sizeBIGINTThe size of the block in bytes, excluding Witness data.

transactions

Unique Key: transaction_index, block_height

Filterable Columns: None

ColumnTypeDescription
transaction_idVARCHARThe unique identifying hash of the transaction.
transaction_indexBIGINTThe sequential position of the transaction within the block.
versionBIGINTThe protocol version that the transaction conforms to.
lock_timeBIGINTThe minimum block height or Unix timestamp at which the transaction can be included in a block.
sizeBIGINTThe total size of the transaction data in bytes.
weightBIGINTThe weight of the transaction in weight units, calculated according to the SegWit specification.
vin_countBIGINTThe number of inputs included in the transaction.
vout_countBIGINTThe number of outputs included in the transaction.
block_heightBIGINTThe height of the block that contains this transaction.
block_hashVARCHARThe hash of the block that contains this transaction.
block_timestampTIMESTAMP(6)The time at which the block containing this transaction was created.
hashVARCHARThe hash of the transaction.
vsizeBIGINTThe virtual size of the transaction in bytes, calculated based on the SegWit weight.
feeVARCHARThe miner fee for processing the transaction.

vins

Unique Key: vin_index, transaction_index, block_height

Filterable Columns: address

ColumnTypeDescription
vin_indexBIGINTThe sequential position of this input within the transaction.
transaction_indexBIGINTThe sequential position of this transaction within the block.
transaction_idVARCHARThe ID of the transaction to which this input belongs.
addressVARCHARThe address that signed this input.
addressesARRAY(VARCHAR)A list of addresses associated with this input.
valueVARCHARThe amount of the UTXO consumed by this input.
coinbaseVARCHARArbitrary data written by the miner in the case of a coinbase transaction.
is_coinbaseBOOLEANWhether this input is a coinbase input that generates the block reward.
vout_transaction_idVARCHARThe transaction ID of the previous output referenced by this input.
vout_indexBIGINTThe index of the previous output referenced by this input.
script_sigVARCHARThe raw byte value of the input signature script.
script_sig_asmVARCHARThe human-readable ASM representation of the input signature script.
script_sig_typeVARCHARThe type of the input signature script.
sequenceBIGINTThe sequence value used for BIP-68 relative timelocks.
witnessARRAY(VARCHAR)A list of Witness data for SegWit transactions.
block_heightBIGINTThe height of the block containing the transaction to which this input belongs.
block_timestampTIMESTAMP(6)The creation time of the block containing the transaction to which this input belongs.
vout_block_heightBIGINTThe height of the block in which the output referenced by this input was created.
vout_transaction_indexBIGINTThe sequential position within the block of the transaction that contains the output referenced by this input.

vouts

Unique Key: vout_index, transaction_index, block_height

Filterable Columns: address

ColumnTypeDescription
vout_indexBIGINTThe sequential position of this output within the transaction.
transaction_indexBIGINTThe sequential position of this transaction within the block.
transaction_idVARCHARThe ID of the transaction to which this output belongs.
script_pub_keyVARCHARThe raw byte value of the output locking script.
script_pub_key_asmVARCHARThe human-readable ASM representation of the output locking script.
script_pub_key_typeVARCHARThe type of the output locking script.
addressVARCHARThe address that can spend this output.
addressesARRAY(VARCHAR)A list of addresses that can spend this output.
valueVARCHARThe amount of BTC assigned to this output.
req_sigsBIGINTThe minimum number of signatures required to spend this output.
block_heightBIGINTThe height of the block containing the transaction to which this output belongs.
block_timestampTIMESTAMP(6)The creation time of the block containing the transaction to which this output belongs.