petertherockMinted on Ethereum v2
Updated 2023-04-13Copy Reference Fork
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
›
⌄
SELECT
tt.block_timestamp AS time,
n.nft_address AS collection_contract,
contract_address AS currency_token,
amount AS fee_amount_token,
amount_usd AS fee_amount_usd,
contract_address AS currency_token,
tt.origin_from_address AS wallet,
n.nft_address,
n.project_name,
'listed' AS sale_type
FROM ethereum.core.ez_token_transfers tt
LEFT JOIN ethereum.core.ez_nft_transfers n
ON tt.tx_hash = n.tx_hash
WHERE
tt.origin_to_address = '0x40cbf9c75a46b147e0fd9ab47df5e064ae015f92'
AND tt.origin_function_signature IN ('0xb4e4b296','0x38e29209')
AND tt.to_address = lower('0x181EcF05cd61e20d4803f7828f9dE62f492eDc1b')
-- AND tt.tx_hash = '0x6b68d90df21635930623eaca23a0b2dd82af74e52eedf198053dc848b6969cbb'
UNION ALL
SELECT
tt.block_timestamp AS time,
n.nft_address AS collection_contract,
contract_address AS currency_token,
amount AS fee_amount_token,
amount_usd AS fee_amount_usd,
contract_address AS currency_token,
tt.origin_from_address AS wallet,
n.nft_address,
n.project_name,
'offer' AS sale_type
FROM ethereum.core.ez_token_transfers tt
LEFT JOIN ethereum.core.ez_nft_transfers n
ON tt.tx_hash = n.tx_hash
Run a query to Download Data