Step 2 - SQL Query
It includes:
- Interactive API clients and sample code.

SQL Query Editor: querying for UniswapV2 Pool Liquidity Stats
Once you've set up a Portal account, replace
[API-KEY]
in the sample below with your API Key from the Spice app.cURL
curl --request POST \
--url 'https://data.spiceai.io/v0.1/sql' \
--header 'Content-Type: text/plain' \
--header 'X-API-KEY: [API-KEY]'
--data 'select * from eth.recent_blocks order by "timestamp" desc'
Last modified 1mo ago