Comment on page

Step 2 - SQL Query

Make a basic SQL query in the Playground

Use the Playground to experiment with SQL queries, APIs, and models directly in app.
It includes:
SQL Query Editor: querying for UniswapV2 Pool Liquidity Stats

Make a basic SQL query using cURL

Once you've set up a Portal account, replace [API-KEY] in the sample below with your API Key from the Spice app.
curl --request POST \
--url '' \
--header 'Content-Type: text/plain' \
--header 'X-API-KEY: [API-KEY]'
--data 'select * from eth.recent_blocks order by "timestamp" desc'
Visit the FAQ page for more details.

Call the API

To get an API key, set up a Portal account.
Your API key also unlocks custom visualizations via Grafana Plugin.
Last modified 1mo ago