flipsidecrypto⚡️ LQ / StrangeLove 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
›
⌄
-- Strangelove 🤝 Flipside LiveQuery Function Guide
-------------------------------------------------------------------------
-- The Strangelove LiveQuery integration enables you to interact with
-- any Strangelove network directly in SQL.
-- -----------------------------------------------------------------
-- 🚨 WARNING 🚨
-- To run these examples you must associate your Strangelove API Key
-- with your Flipside Account here:
-- https://flipsidecrypto.xyz/livequery/strangelove
-- ======================================================================
--
-- ⚡️ Strangelove Functions
-- schema: `strangelove`
-- function docs: https://voyager.strange.love/docs/cosmoshub/mainnet
--
-- ======================================================================
--
-- #️⃣ strangelove.get('url', 'query args')
-- Issue a GET request to a Strangelove Nework
--
-- example:
SELECT
strangelove.get('https://api.strange.love/cosmoshub/mainnet/rpc/block_by_hash', {
'blockHash': '0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED'
}) as resp
--
-- #️⃣ strangelove.post('url', 'body')
-- Issue a POST request to Strangelove Nework
--
-- example
SELECT
Run a query to Download Data