BlockTrackertop Gas Guzzling contract
    Updated 3 days ago
    with contract_list as (
    select
    distinct to_address as address
    from ink.core.fact_traces
    where type ilike '%CREATE%'
    and TX_SUCCEEDED
    and input <> '0x'
    and to_address is not null
    and ORIGIN_FUNCTION_SIGNATURE <> '0x'
    and block_timestamp::date >= '2024-12-15'
    )

    select
    to_address as contract_address,
    c.LABEL as contract_name,
    count(DISTINCT tx_hash) as n_transaction,
    round(sum(tx_fee),2) as total_fee_eth,
    round(sum(tx_fee * p.price),2) as total_fee_usd,
    count(distinct from_address) as wallets
    from ink.core.fact_transactions a
    join contract_list b ON a.to_address = b.address
    left join ink.core.dim_labels c ON a.to_address = c.address
    left join (
    select
    price
    from crosschain.price.ez_prices_hourly
    where blockchain = 'ethereum'
    and is_native = 'TRUE'
    qualify row_number() over (order by hour desc) = 1
    ) p ON TRUE
    where block_timestamp::date >= current_date - 30
    group by 1 , 2
    order by total_fee_eth desc
    limit 100
    Last run: 3 days ago
    CONTRACT_ADDRESS
    CONTRACT_NAME
    N_TRANSACTION
    TOTAL_FEE_ETH
    TOTAL_FEE_USD
    WALLETS
    1
    0x1195cf65f83b3a5768f3c496d3a05ad6412c64b7layer3 cube1697312.294078.5422614
    2
    0x9f500d075118272b3564ac6ef2c70a9067fd2d3f36156521.282268.12195290
    3
    0xa8c1c38ff57428e5c3a34e0899be5cb385476507960680.971716.9520918
    4
    0x000000000006a4ae738bc2f1bb5675c720fbe3df211530.41722.412
    5
    0x00000000009a1e02f00e280dcfa4c81c55724212312400.34601.5521735
    6
    0x3a63171dd9bebf4d07bc782fecc7eb0b890c2a45116170.27481.77454
    7
    0x0200c29006150606b650577bbe7b6248f58470c1usd₮0551050.24429.0526427
    8
    0xcab283e4bb527aa9b157bae7180fef19e2aaa71arebasing ink staked eth265690.24419.6422957
    9
    0x1df2de291f909baa50c1456c87c71edf9fb199d50x1df2...50c1456c87c71edf9fb199d5179360.2352.7516792
    10
    0x652e53c6a4fe39b6b30426d9c96376a105c89a95251540.19334.778970
    11
    0x1d199f89257049f2d69eb431aa991975c13318c0315400.17309.037842
    12
    0x7f50c5776722630a0024fae05fde8b47571d7b39105110.17299.745
    13
    0x9b17690de96fcfa80a3acaefe11d936629cd7a77156870.16287.955855
    14
    0xf1815bd50389c46847f0bda824ec8da914045d14stargate594030.16290.0826125
    15
    0x1d74317d760f2c72a94386f50e8d10f2c902b89942200.14252.071967
    16
    0x19d3e22ab96330608864ead791a0bc9acea12cd0499020.13223.383
    17
    0x9234d821c10b72e09c594f882f1d5dacf262100621960.13234.621922
    18
    0x00000000001594c61dd8a6804da9ab58ed2483cenfts2me owners47470.13239.464332
    19
    0x5839389261d1f38aac7c8e91dcda85646becb414338270.11203.4317587
    20
    0xe4c9bcfd2b5d77ebca096684107e2505c3642def116210.1184.1410961
    100
    7KB
    18s