denze-e7j2NUVolume by Holders (Captainz) copy
999
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
›
⌄
⌄
/*
approx. daily floor price
*/
WITH
input_contracts AS (
SELECT
trim(F.value) AS nft_contract_address
FROM (
SELECT
SPLIT(data.nft_contract_address, ';') AS input
FROM VALUES
-- (lower('{{nft_contract_address}}'))
(lower('0x769272677fab02575e84945f03eca517acc544cc')) -- Captainz
-- (lower('0xed5af388653567af2f388e6224dc7c4b3241c544')) -- Azuki
-- (lower('0x6efc003d3f3658383f06185503340c2cf27a57b6; 0x769272677fab02575e84945f03eca517acc544cc; 0x39ee2c7b3cb80254225884ca001f57118c8f21b6')) -- Memeland
-- (lower('0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d')) -- BAYC
-- (lower('0x8a90cab2b38dba80c64b7734e58ee1db38b8992e')) -- Doodles
-- (lower('0xed5af388653567af2f388e6224dc7c4b3241c544 ; 0x306b1ea3ecdf94ab739f1910bbda052ed4a9f949')) -- Azuki
-- (lower('0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d; 0x60e4d786628fea6478f785a6d7e704777c86a7c6; 0x34d85c9cdeb23fa97cb08333b511ac86e1c4e258')) -- Yuga
-- (lower('0x8a90cab2b38dba80c64b7734e58ee1db38b8992e ; 0x466cfcd0525189b573e794f554b8a751279213ac')) -- Doodles
AS data(nft_contract_address)
) i
, Table(Flatten(i.input)) AS F
WHERE trim(F.value) regexp '^0x[0-9a-fA-F]{40}$' -- check address is a valid format, i.e. starts with 0x and has 42 characters total
)
-- get all nft transfers
, nft_transfers AS (
SELECT
t.nft_address AS nft_contract_address
, t.tokenid AS token_id
, t.block_timestamp AS block_time
Run a query to Download Data