mamad-5XN3k3Kaia vs. Other Chains
    Updated 2025-03-16
    with klaypricet as (
    Select
    TO_TIMESTAMP(value[0]::string) as pdate,
    value[1] as price
    from (
    SELECT livequery.live.udf_api(
    'https://api.coingecko.com/api/v3/coins/klay-token/market_chart?vs_currency=usd&days=360&interval=daily&precision=3') as resp)
    ,LATERAL FLATTEN (input => resp:data:prices)
    ),

    pricet as (
    select
    case
    when TOKEN_ADDRESS='0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' then 'ETH'
    when TOKEN_ADDRESS= '0x1fa4a73a3f0133f0025378af00236f3abdee5d63' then 'NEAR'
    when TOKEN_ADDRESS= '0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7' then 'AVAX'
    when Token_ADDRESS= 'so11111111111111111111111111111111111111112' then 'SOL'
    else symbol end as sym,
    HOUR::date as pdate,
    avg(price) as price
    from crosschain.price.ez_prices_hourly
    where
    TOKEN_ADDRESS in ('0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2','0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7',
    '0x1fa4a73a3f0133f0025378af00236f3abdee5d63','so11111111111111111111111111111111111111112')

    and hour::date >= '2024-09-01'
    group by 1,2
    ),

    aptprice as (
    SELECT
    TO_TIMESTAMP(value[0]::string) as pdate,
    value[1] as price
    from (
    SELECT livequery.live.udf_api(
    'https://api.coingecko.com/api/v3/coins/aptos/market_chart?vs_currency=usd&days=90&interval=daily&precision=3') as resp
    Last run: 3 months ago
    CHAIN
    DAY
    TXS
    AVG_TPS
    FEE
    USERS
    SUCCEEDED_TXS
    TX_PER_USER
    TX_PER_DAY
    USER_PER_DAY
    1
    Kaia2024-11-264603435.3280439814810.00348286391110233097.73674.498612460343102330
    2
    Optimism2024-12-10115874113.4113541666670.015620101067682892.592715.082275115874176828
    3
    Avalanche2024-10-061297621.5018750.1357649732547594.68875.093712976225475
    4
    Ethereum2024-09-27120255013.9184027777782.30319385936838797.823.2643661202550368387
    5
    Ethereum2025-03-164777895.5299652777780.226928945515744398.59353.034679477789157443
    6
    NEAR2024-10-11741595685.8328240740740.002488216505101651199.99987.295574159561016511
    7
    Optimism2024-10-127855889.0924537037040.0043945359037840197.768610.02012778558878401
    8
    Avalanche2025-03-074075374.7168634259260.049121913263969784.167610.26619140753739697
    9
    Arbitrum2024-12-26216230725.0267013888890.00991170687737365190.40895.786972162307373651
    10
    Ethereum2024-10-04113961313.1899652777781.09277255635142798.25923.2428161139613351427
    11
    Avalanche2024-10-121499921.7360185185190.17085865232835495.42715.28997714999228354
    12
    Arbitrum2025-01-11174484120.1949189814810.00314751956126355693.11346.620381744841263556
    13
    Arbitrum2024-10-01220396025.5087962962960.0220288626440111686.54355.494572203960401116
    14
    Kaia2024-11-098120629.3988657407410.00157072964539503599.48012.055671812062395035
    15
    Kaia2024-10-255657116.5475810185190.00177779484220592298.93252.74721565711205922
    16
    Avalanche2024-10-181756362.0328240740740.11853527293007596.12445.83993317563630075
    17
    Arbitrum2024-09-04207071523.9666087962960.0197830492840801089.1125.0751572070715408010
    18
    Kaia2024-09-254340255.02343750.00201394315715049298.61462.88404434025150492
    19
    Arbitrum2024-09-22201511923.3231365740740.00359031910446811791.30364.3047342015119468117
    20
    Arbitrum2025-01-24255751029.6008101851850.00555658792242091689.41296.0760582557510420916
    ...
    1272
    124KB
    414s