flipsidecrypto⚡️ LQ / StakingRewards 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
›
⌄
-- StakingRewards 🤝 Flipside LiveQuery Function Guide
-------------------------------------------------------------------------
-- The StakingRewards LiveQuery integration enables you to query
-- StakingRewards graphql interface directly in SQL.
-- -----------------------------------------------------------------
-- 🚨 WARNING 🚨
-- To run these examples you must associate your StakingRewards API Key
-- with your Flipside Account here:
-- https://flipsidecrypto.xyz/livequery/stakingrewards
-- ======================================================================
--
-- ⚡️ StakingRewards Functions
-- schema: `stakingrewards`
-- docs: https://api-docs.stakingrewards.com/api-docs/get-started/quick-start-guide
--
-- ======================================================================
--
-- #️⃣ stakingrewards.query({query: <query>, variables: <variables})
SELECT
stakingrewards.query(
{
'query': '{
assets(where: {symbols: ["ETH"]}, limit: 1) {
name
slug
description
symbol
}
}',
'variables': {}
}
) as resp
Run a query to Download Data