tkvresearchtasty-jade
    Updated 2025-05-05
    with contract as
    (select address,
    symbol,
    name
    from ink.core.dim_contracts),

    ink_wallet as
    (select
    user_add
    from
    (select date(block_timestamp) as datetime,
    date_trunc('week',block_timestamp) as week_date,
    date_trunc('month',block_timestamp) as month_date,
    tx_hash,
    tx_fee,
    to_address as user_add,
    from_address as contract_add
    from ink.core.fact_transactions
    where from_address in (select address from contract)
    union all
    select date(block_timestamp) as datetime,
    date_trunc('week',block_timestamp) as week_date,
    date_trunc('month',block_timestamp) as month_date,
    tx_hash,
    tx_fee,
    from_address as user_add,
    to_address as contract_add
    from ink.core.fact_transactions
    where to_address in (select address from contract)))

    select *
    from
    (select *,
    'Base' as chain
    from
    (select --origin_from_address as trader,
    Last run: 24 days ago
    TOKEN_OUT
    SYMBOL_OUT
    TOTAL_BUY
    CHAIN
    1
    0x940181a94a35a4569e4529a3cdfb74e38fd98631AERO3042112.24Base
    2
    0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1bVIRTUAL2946466.35Base
    3
    0x4f9fd6be4a90f2620860d680c0d4d5fb53d1a825AIXBT242177.73Base
    4
    0x4e74d4db6c0726ccded4656d0bce448876bb4c7awBLT211101.13Base
    5
    0x043eb4b75d0805c43d7c834902e335621983cf03CADC184089.96Base
    6
    0x1bc0c42215582d5a085795f4badbac3ff36d1bcbCLANKER151150.5Base
    7
    0xc9d23ed2adb0f551369946bd377f8644ce1ca5c4HYPER132586.26Base
    8
    0xd769d56f479e9e72a77bb1523e866a33098feec5Base is for everyone130638.77Base
    9
    0x1c4cca7c5db003824208adda61bd749e55f463a3GAME123793.88Base
    10
    0xb0505e5a99abd03d94a1169e638b78edfed26ea4uSUI119829.24Base
    10
    736B
    11s