Query editor
-- GromaCoin (GRO) on Base: issuance, redemption, transfers, holders, and DEX activity.-- Official contract: https://basescan.org/token/0xdb433b2c714d898fdb81fee9a6ca4a3f1c2a79a5-- Source tiers: Dune-official tokens.transfers; curated dex.trades is used only-- as a verifiable lower-bound check and may omit unsupported venues.WITH token_transfers AS (SELECTblock_time,tx_hash,"from","to",amountFROM tokens.transfersWHERE blockchain = 'base'AND contract_address = 0xdb433b2c714d898fdb81fee9a6ca4a3f1c2a79a5AND block_month >= DATE '2024-01-01'),wallet_deltas AS (SELECT "to" AS wallet, amount AS deltaFROM token_transfersWHERE "to" <> 0x0000000000000000000000000000000000000000UNION ALLSELECT "from" AS wallet, -amount AS deltaFROM token_transfersWHERE "from" <> 0x0000000000000000000000000000000000000000),balances AS (SELECT wallet, SUM(delta) AS balanceFROM wallet_deltasGROUP BY 1),transfer_summary AS (SELECTMIN(block_time) AS first_onchain_activity,MAX(block_time) AS latest_onchain_activity,COUNT_IF("from" = 0x0000000000000000000000000000000000000000) AS mint_event_count,SUM(CASEWHEN "from" = 0x0000000000000000000000000000000000000000 THEN amountELSE 0END) AS minted_token_amount,COUNT_IF("to" = 0x0000000000000000000000000000000000000000) AS burn_event_count,SUM(CASEWHEN "to" = 0x0000000000000000000000000000000000000000 THEN amountELSE 0END) AS burned_token_amount,COUNT_IF("from" <> 0x0000000000000000000000000000000000000000AND "to" <> 0x0000000000000000000000000000000000000000AND "from" <> "to") AS ordinary_transfer_count,SUM(CASEWHEN "from" <> 0x0000000000000000000000000000000000000000AND "to" <> 0x0000000000000000000000000000000000000000AND "from" <> "to"THEN amountELSE 0END) AS ordinary_transfer_token_amount,COUNT(DISTINCT CASE