datboitommy-XMrMRYcourse session 3
Updated 2024-10-17
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
›
-- Native Transfers
-- with raw as (
-- SELECT
-- block_timestamp,
-- tx_hash,
-- from_address,
-- to_address,
-- amount
-- FROM ethereum.core.ez_native_transfers
-- WHERE from_address = lower('0xd8da6bf26964af9d7eed9e03e53415d37aa96045'
-- )
-- and block_timestamp::date >= '2024-01-01'
-- )
-- SELECT
-- date_trunc('month', block_timestamp) as monthly,
-- sum(amount)
-- FROM raw
-- GROUP by all
-- toker transfers
-- with raw as (
-- SELECT
-- block_timestamp,
-- tx_hash,
-- from_address,
-- to_address,
-- contract_address, -- usdc, usdt,
-- symbol,
-- amount
-- FROM ethereum.core.ez_token_transfers
-- WHERE block_timestamp::date >= '2024-08-01'
-- AND contract_address IN (
QueryRunArchived: QueryRun has been archived