Skip to content

Add Bitcoin blockchain on AWS dataset - #96

Open
b10claude wants to merge 1 commit into
bitcoin-data:mainfrom
b10claude:add-aws-public-blockchain-bitcoin
Open

b10claude wants to merge 1 commit into
bitcoin-data:mainfrom
b10claude:add-aws-public-blockchain-bitcoin

Conversation

@b10claude

Copy link
Copy Markdown

Adds datasets/aws-public-blockchain-bitcoin.toml.

Sources

Every claim in the entry, and what backs it.

What one record is, and the format

  • analytics/consumer/schema/btc.md in aws-samples/digital-assets-examples
    documents two tables. blocks "Stores each block from Bitcoin Blockchain"
    with hash, size, stripped_size, weight, number, version,
    merkle_root, timestamp, nonce, bits, coinbase_param,
    transaction_count, mediantime, difficulty, chainwork and
    previousblockhash. transactions "Stores each transaction per block,
    including all inputs and outputs as nested arrays" — hence "inputs and
    outputs nested".
  • Both tables carry date as "Partition column (YYYY-MM-DD)", and the
    top-level analytics/schema.md says "The data is provided as parquet files
    partioned by date".
  • I listed the bucket anonymously:
    https://aws-public-blockchain.s3.us-east-2.amazonaws.com/?list-type=2&prefix=v1.0/btc/&delimiter=/
    returns the prefixes v1.0/btc/blocks/ and v1.0/btc/transactions/, and the
    first keys under each are
    blocks/date=2009-01-03/part-00000-….snappy.parquet (7,541 bytes) and
    transactions/date=2009-01-03/part-00000-….snappy.parquet (10,128 bytes).
    No credentials are needed.

Where it comes from

  • btc.md: "This schema follows the table/field structure of the open-source
    project bitcoin-etl (https://github.com/blockchain-etl/bitcoin-etl)" and "All
    data is sourced from Bitcoin Core node (22.0)."
  • The Registry of Open Data entry aws-public-blockchain.yaml lists the
    Bitcoin dataset as maintained by AWS at s3://aws-public-blockchain/v1.0/btc/
    and gives ManagedBy: "[Amazon Web Services](https://aws.amazon.com/)".
  • Cadence is documented but deliberately left out of the description per the
    timeless rule. For a reviewer: btc.md says a per-block Parquet file appears
    "~10-20 seconds after a new block is received" and that "Every night ~00:35 am
    UTC intra-day files are replaced with one Parquet file per day".

Period

  • The earliest key under both prefixes is date=2009-01-03, the genesis day,
    and the registry describes the data as ongoing, so period_start = "2009-01-03" with period_open = true.

Licence

  • The registry's License field points at
    https://github.com/aws-samples/digital-assets-examples/blob/main/LICENSE,
    which is an MIT No Attribution style grant covering "this software and
    associated documentation files". It says nothing about the datasets in the
    bucket, so the entry records that rather than claiming the data is licensed.

Relationship to an existing entry

  • This is the AWS counterpart of bigquery-crypto-bitcoin: both are bitcoin-etl
    derived tables of blocks and transactions, one in BigQuery and one as Parquet
    in S3. Worth keeping both, but they are not independent of each other.

Not verified / left out

  • I did not download or parse a Parquet file, only listed the keys and read the
    published schema.
  • Whether the bucket is requester-pays. The registry lists no RequesterPays
    flag and anonymous listing worked, so the entry makes no claim about costs.
  • Whether every documented field is actually populated.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EQFKPv3mB1J6LFakJnjNsd

@github-actions

Copy link
Copy Markdown

Dataset preview (1 changed entry)

How these entries will read once merged, straight from the generator.

Bitcoin blockchain on AWS

/datasets/aws-public-blockchain-bitcoin/

Two tables covering the chain, one row per block and one per transaction with inputs and outputs nested, as Parquet partitioned by date. Amazon Web Services loads them from a Bitcoin Core node using the bitcoin-etl schema and publishes them in a public S3 bucket. Useful for querying the chain with Athena or any Parquet reader without running a node; the stated licence covers the example code, not the data.

Field Value
Category Transactions
Format Parquet
Period 2009-01-03 – present
License Not specified for the data; the linked LICENSE covers the example code
Author Amazon Web Services
Tags addresses, blocks, mainnet, transactions
Description 3 sentences, 70 words

Links, in the order they will render:

Generated by ci/preview.py.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants