JimMyersTech2023-07-24 10:26 PM
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
›
⌄
-- 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/marketplace/playgrounds
-- ======================================================================
--
-- ⚡️ Playgrounds Functions
-- schema: `playgrounds`
-- function docs: https://gateway.credmark.com/api/
--
-- ======================================================================
--
-- #️⃣ playgrounds.query_subgraph(<subgraph_id>, {query: <query>, variables: <variables})
--
-- (https://gateway.credmark.com/api/#/Token%20API)
SELECT
playgrounds.query_subgraph(
'ELUcwgpm14LKPLrBRuVvPvNKHQ9HvwmtKgKSH6123cr7',
{
'query': '{protocols {id}}',
'variables': '{}'
}
)
Run a query to Download Data