flipsidecrypto⚡️ LQ / OpenSea 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
›
⌄
-- OpenSea 🤝 Flipside LiveQuery Function Guide
-------------------------------------------------------------------------
-- The OpenSea LiveQuery integration enables you to interact with
-- any OpenSea API endpoint directly in SQL.
-- -----------------------------------------------------------------
-- 🚨 WARNING 🚨
-- To run these examples you must associate your OpenSea API Key
-- with your Flipside Account here:
-- https://flipsidecrypto.xyz/livequery/opensea
-- ======================================================================
--
-- ⚡️ OpenSea Functions
-- schema: `opensea`
-- function docs: https://docs.opensea.io/reference/api-overview
--
-- ======================================================================
--
-- #️⃣ opensea.get('url', 'query args')
-- Issue a GET request to a OpenSea Endpoint
--
-- examples:
--
SELECT opensea.get(
'/v2/chain/ethereum/contract/0x23581767a106ae21c074b2276D25e5C3e136a68b/nfts',
{
'limit': 50
}
) as resp;
--
-- #️⃣ opensea.post('url', 'body')
-- Issue a POST request to OpenSea Endpoint
Run a query to Download Data