flipsidecrypto⚡️ LQ / Playgrounds LiveQuery Function Guide
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
-- Playgrounds 🤝 Flipside LiveQuery Function Guide
-------------------------------------------------------------------------
-- The Playgrounds LiveQuery integration enables you to query
-- Playgrounds's proxy to The Graph directly in SQL. This brings the
-- power of The Graph to Flipside!
-- -----------------------------------------------------------------
-- 🚨 WARNING 🚨
-- To run these examples you must associate your Playgrounds API Key
-- with your Flipside Account here:
-- https://flipsidecrypto.xyz/livequery/playgrounds
-- ======================================================================
--
-- ⚡️ Playgrounds Functions
-- schema: `playgrounds`
-- docs: https://docs.playgrounds.network/
--
-- ======================================================================
--
-- #️⃣ playgrounds.query_subgraph(<subgraph_id>, {query: <query>, variables: <variables})
SELECT
playgrounds.query_subgraph(
'ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7',
{
'query': '{
protocols {
name
totalPoolCount
}
}',
'variables': {}
}
) as resp
Run a query to Download Data