flipsidecrypto⚡️ LQ / Subquery 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
›
⌄
-- Subquery 🤝 Flipside LiveQuery Function Guide
-------------------------------------------------------------------------
-- SubQuery is a fast, flexible, and reliable open-source data indexer
-- that provides you with custom APIs for your web3 project across
-- all of our supported chains.
-- Subquery's LiveQuery integration enables you to issue graphql queries
-- to indexers directly in SQL.
-- -----------------------------------------------------------------
-- 🚨 WARNING 🚨
-- To run these examples you must associate your Subquery API Key
-- with your Flipside Account here:
-- https://flipsidecrypto.xyz/livequery/subquery
-- ======================================================================
--
-- ⚡️ SubQuery GraphQL Functions
-- schema: `subquery`
-- function docs: https://explorer.subquery.network/subquery/subquery/kepler-network
--
-- ======================================================================
--
-- #️⃣ subquery.graphql
-- (https://explorer.subquery.network/subquery/subquery/kepler-network)
--
SELECT
subquery.graphql(
'kepler-network', -- subquery network id
{'query':'query { _mmrs (first: 5) { nodes { key } } }'} -- graphql query
) as resp
Run a query to Download Data