Squid🔎Tracking of Transferred Tokens (Sorted By Transfers Count)
    Updated 5 days ago
    with final_table as (with its as (select date_trunc('day',created_at) as date, data:amount as amount, id,
    data:call:transaction:from as sender, (data:gas:gas_used_amount*data:gas_price_rate:source_token.token_price.usd) as fee_usd,
    lower(data:interchain_transfer:contract_address) as token_address,
    data:interchain_transfer:name as token_name, data:interchain_transfer:symbol as token_symbol,
    data:call:chain as source_chain, data:call:returnValues:destinationChain as destination_chain
    from axelar.axelscan.fact_gmp
    where data:interchain_transfer:event='InterchainTransfer'
    and call ilike '%0xB5FB4BE02232B1bBA4dC8f81dc24C26980dE9e3C%'),

    price as (select hour::date as date, avg(price) as price, token_address, symbol
    from crosschain.price.ez_prices_hourly
    group by 1,3,4)

    select its.date as date, its.token_address as token_address, price.symbol as symbol, amount,
    amount*price as amount_usd, source_chain, destination_chain, id, sender
    from its left join price on its.date=price.date and its.token_address=price.token_address
    where amount_usd is not null)

    select symbol, count(distinct id) as "Transfers Count", count(distinct sender) as "Senders Count",
    sum(amount_usd) as "Transfers Volume ($USD)", count(distinct source_chain || '➡' || destination_chain) as "Paths Count"
    from final_table
    where date between '{{Start_Date}}' and '{{End_Date}}'
    group by 1
    order by 2 desc


    Last run: about 17 hours agoAuto-refreshes every 24 hours
    SYMBOL
    Transfers Count
    Senders Count
    Transfers Volume ($USD)
    Paths Count
    1
    AI17843183413514525.1290877117
    2
    KLIMA10128471528504910.39631593
    3
    DACKIE52511461486532.1076193518
    4
    RMRK506635169322928.2474930118
    5
    ATH45312012227908577.0389293
    6
    CAI449542426634728.38119364
    7
    QUACK189179511986.81547410717
    8
    BCT1669678567306.702942242
    9
    CHRP1559363493008.383763772
    10
    G31556666402740.3074316
    11
    MSS1504207248631.7529263632
    12
    ESE12414083551491.725611214
    13
    GRAIN1118313349506.36871879132
    14
    CATE1041442014016.64925339
    15
    ALVA1002611331018.282179782
    16
    BAVA9837017815899.73877278
    17
    YEL9473041023898.4949008164
    18
    $WAI89627011415871.34299721
    19
    OFF842474731810.37952422
    20
    RBX601362110135.563314582
    ...
    111
    3KB
    39s