flipsidecrypto⚡️ LQ / Snapshot 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
›
⌄
-- Snapshot 🤝 Flipside LiveQuery Function Guide
-------------------------------------------------------------------------
-- The Snapshot LiveQuery integration enables you to interact with
-- any Snapshot API endpoint directly in SQL.
-- ======================================================================
--
-- ⚡️ Snapshot Functions
-- schema: `snapshot`
-- function docs: https://docs.snapshot.org/tools/api
--
-- ======================================================================
--
-- #️⃣ snapshot.query('url', 'query args')
-- Issue a GraphQL Query to Snapshot
--
-- examples:
--
SELECT snapshot.query({
'query': '{
space(id: "snapshot.dcl.eth") {
id
name
members
}
}',
'variables': {}
}) as resp
Run a query to Download Data