hyoeisemanSecondary sales
Updated 2022-06-22Copy 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
›
⌄
with traits as (
select
block_number as mint_block,
block_timestamp as mint_time,
tx_hash as mint_hash,
contract_address,
tokenflow_eth.hextoint(topics[1])::integer as tokenID,
tokenflow_eth.hextoint(substr(data,3,64)) as background,
tokenflow_eth.hextoint(substr(data,67,64)) as body,
tokenflow_eth.hextoint(substr(data,131,64)) as accessory,
tokenflow_eth.hextoint(substr(data,195,64)) as head,
tokenflow_eth.hextoint(substr(data,259,64)) as glasses
from ethereum.core.fact_event_logs
where block_number > 12000000
and contract_address = lower('0x4b10701Bfd7BFEdc47d50562b76b436fbB5BdB3B')
and topics[0]::string = lower('0x1106ee9d020bfbb5ee34cf5535a5fbf024a011bd130078088cbf124ab3092478')
and origin_function_signature = '0xf25efffc'
),
mint_tx as (
SELECT
tx_hash,
tokenid
FROM ethereum.core.ez_nft_mints
WHERE nft_address = lower('0x4b10701Bfd7BFEdc47d50562b76b436fbB5BdB3B')
),
mint_amount as (
select
tx_hash,
amount as mint_price
from ethereum.core.ez_eth_transfers
where eth_from_address = lower('0x55e0f7a3bb39a28bd7bcc458e04b3cf00ad3219e') and tx_hash in (select tx_hash from mint_tx)
),
Run a query to Download Data