Skip to content

Instantly share code, notes, and snippets.

@rifkiamil
Created February 12, 2021 16:29
Show Gist options
  • Save rifkiamil/bb3798e4be91a43ca590822fbbc43644 to your computer and use it in GitHub Desktop.
Save rifkiamil/bb3798e4be91a43ca590822fbbc43644 to your computer and use it in GitHub Desktop.
SQL for crypto_bitcoin.inputs
SELECT
transactions.hash as transaction_hash,
transactions.block_hash,
transactions.block_number,
transactions.block_timestamp,
inputs.index,
inputs.spent_transaction_hash,
inputs.spent_output_index,
inputs.script_asm,
inputs.script_hex,
inputs.sequence,
inputs.required_signatures,
inputs.type,
inputs.addresses,
inputs.value
FROM `bigquery-public-data.crypto_bitcoin.transactions` as transactions,
transactions.inputs as inputs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment