Query editor
/* Success! If you're still running into issues, check out https://dune.com/docs/query/syntax-differences/ or reach out in the #dune-sql Discord channel. */WITHtransfers AS (SELECTDATE_TRUNC('day', evt_block_time) AS day,(CAST(value AS DOUBLE) / 1e+18) AS value,"from" AS wallet,evt_tx_hashFROMerc20_polygon.evt_TransferWHERE"to" = 0xc9f7dd5dca7848798210008e8493f385f0771893)SELECTCOUNT(DISTINCT wallet) AS num_users,SUM(CAST(value AS DOUBLE)) AS total_token_spend,COUNT(evt_tx_hash) AS total_num_transactionsFROMtransfers