SocioAnalyticaGenesis mint
Updated 2024-03-03
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
›
⌄
with mint_data as (
select
'Mint' as action,
a.block_timestamp,
a.tx_hash,
a.origin_function_signature,
a.origin_from_address,
a.event_index,
concat('0x', substr(topics[2],27,40)) as user,
livequery.utils.udf_hex_to_int(SUBSTR(topics[3], 3, 64)) :: int as tokenID,
b.value as eth_value
from blast.core.fact_event_logs a
join blast.core.fact_transactions b using(tx_hash, block_timestamp)
where topics[0] = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef' -- token transfer -- here "nft transfer"
and contract_address = '0xd641dde60985fab88c623188adba6be3148288d9'
--and origin_to_address = '0xb057044a0859645a2339e1af24a795e4be0bac4b' -- BlastRunner Minter
and concat('0x', substr(topics[1],27,40)) = '0x0000000000000000000000000000000000000000'
)
select
block_timestamp,
tx_hash,
user,
tokenid
from mint_data
order by block_timestamp
limit 1
QueryRunArchived: QueryRun has been archived