Query editor
-- This query used incompatible data types from Dune SQL alpha and may need to be updated.-- More details can be found on https://dune.com/docs/query/dunesql-changes/with total_supply as(select sum(temple_minted) TOTAL_TEMPLE_SUPPLY from(selectCAST(value as double) / 1e18 as temple_mintedfrom erc20_ethereum.evt_Transfer etwhere et.contract_address = 0x470ebf5f030ed85fc1ed4c2d36b9dd02e77cf1b7and et."from" = 0x0000000000000000000000000000000000000000UNION ALLselect-CAST(value as double) / 1e18 as temple_mintedfrom erc20_ethereum.evt_Transfer etwhere et.contract_address = 0x470ebf5f030ed85fc1ed4c2d36b9dd02e77cf1b7and et."to" = 0x0000000000000000000000000000000000000000)k)select * from total_supply