Help & Support

Quick Start Guide

Get started with querying Lens Network data using BigQuery in minutes.

Prerequisites

Before you begin, ensure you have:

  • A Google Cloud account (Sign up here)

  • A Google Cloud project with billing enabled

  • BigQuery API access enabled

New Google Cloud users get $300 in free credits valid for 90 days. For current pricing details, visit the official BigQuery pricing page.

Setup Process

1

Create or Select a Project

  1. Go to Google Cloud Console

  2. In the top navigation bar, click on the project dropdown menu

  3. For a new project:

    • Click "New Project"

    • Enter a project name (e.g., "lens-analytics")

    • Optional: Select an organization and location

    • Click "CREATE"

  4. For an existing project:

    • Click on the project selector

    • Use the search bar to find your project

    • Select the project from the list

Make sure you have sufficient permissions (Owner or Editor role) for the project you select.

2

Enable Billing

  1. Go to the Google Cloud Console Billing page

  2. Select your project

  3. Click "Link a billing account"

  4. Either select an existing billing account or create a new one

3

Enable BigQuery API

  1. Go to BigQuery API page

  2. Click "Enable"

4

Access Lens Datasets

  1. Open BigQuery Console

  2. In the query editor, paste and run this query to explore a table's schema:

SELECT   table_nameFROM `lens-public-data.testnet_block_explorer_public.INFORMATION_SCHEMA.TABLES`;

Remember: Always verify your query's cost before running it by clicking the "Query Validation" button.