Query Runner
Allium Explorer's Query Runner:
The query runner is the main engine of the Allium Explorer. Users can effortlessly query data over all the blockchains offered by Allium in a single platform.
Features
Multi-Chain Support: Write SQL queries that span across all blockchains offered by Allium in a single platform.
Unified Data Schema: Leverage abstracted data models across different blockchains (e.g
crosschain.dex.trades
andcrosschain.stablecoin.transfers
) to simplify query writing.Parameterized Queries: Create dynamic, reusable SQL statements with user-defined parameters.
SQL Formatter: Formats your code to clean, readable SQL code, enhancing collaboration and maintenance.
Using the Explorer Query Runner:
In this example we will show you how to fetch DEX USD Volume for Ethereum, Base, and Solana with parameterized queries.
Example: Fetch DEX USD Volume for Ethereum, Base, and Solana
Head to https://app.allium.so/explorer and click on New to create a new query.
Creating the query:
Copy and paste the query below into the query editor.
The
{{last_n_days}}
is a parameter that you can use to filter the data. There will be a window to input the parameter value once a parameter is defined.Click on Format to format the query.
Click on Save to save the query.
Click on Run (or Crtl+Enter / Mac: Cmd+Enter) to execute the query.
Last updated