flipsidecrypto⚡️ LQ / NftScan 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
›
⌄
-- NftScan 🤝 Flipside LiveQuery Function Guide
-------------------------------------------------------------------------
-- The NftScan LiveQuery integration enables you to interact with
-- any NftScan API endpoint directly in SQL.
-- -----------------------------------------------------------------
-- 🚨 WARNING 🚨
-- To run these examples you must associate your NftScan API Key
-- with your Flipside Account here:
-- https://flipsidecrypto.xyz/livequery/nftscan
-- ======================================================================
--
-- ⚡️ NftScan Functions
-- schema: `nftscan`
-- function docs: https://docs.nftscan.com/
--
-- ======================================================================
--
-- #️⃣ nftscan.get('url', 'query args')
-- Issue a GET request to a NftScan Endpoint
--
-- examples:
--
SELECT nftscan.get(
'https://restapi.nftscan.com/api/v2/account/own/0xca1257ade6f4fa6c6834fdc42e030be6c0f5a813',
{'erc_type': 'erc721'}
) as resp;
--
-- #️⃣ nftscan.post('url', 'body')
-- Issue a POST request to NftScan Endpoint
--
-- example
Run a query to Download Data