[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-08 UTC."],[[["\u003cp\u003eThis content provides instructions on how to query Blockchain Analytics using BigQuery, including how to access the BigQuery console and compose a new query.\u003c/p\u003e\n"],["\u003cp\u003ePre-GA products and features such as this one are subject to the "Pre-GA Offerings Terms" and are available "as is" with potentially limited support.\u003c/p\u003e\n"],["\u003cp\u003eUsers can build their own queries in BigQuery by composing and running queries in the "Editor" field.\u003c/p\u003e\n"],["\u003cp\u003eAn example query is given to list the total number of transactions for each day over the past six months, alongside example result data.\u003c/p\u003e\n"]]],[],null,["# Example queries\n\n| **Preview**\n|\n|\n| This product or feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA products and features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nThis page provides general instructions on how to query Blockchain Analytics.\n\nSee the [BigQuery documentation](/bigquery/docs/introduction) for\ninstructions on using BigQuery.\n\nTo build your own query:\n\n1. In the Google Cloud console, go to the **BigQuery** page.\n\n [Go to BigQuery](https://console.cloud.google.com/bigquery)\n2. Click **Compose a new query**.\n3. Type a query in the **Editor** field.\n4. Click **Run**.\n\nFor example, to list the total number of transactions for each day for the last\nsix months:\n\n1. In the Google Cloud console, go to the **BigQuery** page.\n\n [Go to BigQuery](https://console.cloud.google.com/bigquery)\n2. Copy the following and paste it into the query box:\n\n SELECT\n TIMESTAMP_TRUNC(block_timestamp, DAY) AS timestamp1, COUNT(1) AS txn_count\n FROM\n bigquery-public-data.goog_blockchain_ethereum_mainnet_us.transactions\n WHERE\n block_timestamp \u003e= CAST(DATE_SUB(CURRENT_DATE(), INTERVAL 6 MONTH) AS TIMESTAMP)\n GROUP BY timestamp1\n ORDER BY timestamp1\n\n3. Click **Run**. The following shows an example result:"]]