superflyCopy of Untitled Query
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
›
⌄
WITH lps as (
SELECT
to_char(
date_trunc('day', block_timestamp),
'yyyy-mm-dd'
) as date,
tx_id,
TX_FROM_ADDRESS as user_wallet,
EVENT_INPUTS : value / POW(10, 18) as amount,
contract_address
FROM
ethereum.events_emitted
WHERE
TX_TO_ADDRESS = '0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f'
and event_name = 'Transfer'
and EVENT_INPUTS :
from
:: string = '0x0000000000000000000000000000000000000000'
and TX_SUCCEEDED = 'TRUE'
)
SELECT
COUNT(DISTINCT user_wallet) as num_LPs
FROM
lps
Run a query to Download Data