Skip to content

Instantly share code, notes, and snippets.

@Nickforall
Last active August 12, 2022 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nickforall/6d44b25bd9cb75345a52abe9ddbc9520 to your computer and use it in GitHub Desktop.
Save Nickforall/6d44b25bd9cb75345a52abe9ddbc9520 to your computer and use it in GitHub Desktop.
SELECT
transaction_hash,
topics [SAFE_OFFSET(1)] AS from_address,
topics [SAFE_OFFSET(2)] AS to_address,
address AS contract
FROM
`bigquery-public-data.crypto_ethereum.logs`
WHERE
topics [SAFE_OFFSET(0)] = "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0"
AND DATE(block_timestamp) = "2022-08-12"
LIMIT 1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment