Skip to content

Instantly share code, notes, and snippets.

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