Query editor
-- curl -s -X GET "https://api.realt.community/v1/token" -H "accept: */*" | jq --raw-output ".[] | [.fullName, .shortName, .symbol, .tokenPrice, .currency, .uuid, .ethereumContract, .xDaiContract, .gnosisContract, .lastUpdate.date, .lastUpdate.timezone_type, .lastUpdate.timezone] | @csv" | sed -e "s/\"/'/g" | sed -e "s/.*/(&)/g"withrealt as (selectfullname as full_name, shortname as short_name, symbol, tokenprice as token_price, currency, uuid, ethereumcontract as ethereum_contract, xdaicontract as xdai_contract, gnosiscontract as gnosis_contract, if(ethereumcontract is null, 'gnosis', 'ethereum') as chain, coalesce(ethereumcontract, gnosiscontract) as contract_address, lastupdate as last_updatefrom dune."1inch".dataset_realt_20241225_021425-- from dune."1inch".dataset_realt_20240809_224934-- from dune."1inch".dataset_realt_20240402_212700-- from dune."1inch".dataset_realt_20240213_184123-- from dune."1inch".dataset_realt_20231228_144128-- from dune."1inch".dataset_realt_20231110_123831-- from dune."1inch".dataset_realt_20230928_110939-- from dune."1inch".dataset_realt_20230907_141640-- from dune_upload.realt_20230824_225405-- from dune_upload.realt_2023_08_02_18_05_29), transfers as (select'ethereum' as chain, contract_address, min(evt_block_time) as created, sum(if("from" = 0x0000000000000000000000000000000000000000 and "to" <> 0x0000000000000000000000000000000000000000, value, uint256 '0')) as eth_minted, sum(if("from" <> 0x0000000000000000000000000000000000000000 and "to" = 0x0000000000000000000000000000000000000000, value, uint256 '0')) as eth_burned, uint256 '0' as gno_minted, uint256 '0' as gno_burnedfrom erc20_ethereum.evt_Transferwhere contract_address in (select contract_address from realt where chain = 'ethereum')group by 1, 2union allselect'gnosis' as chain, contract_address, min(evt_block_time) as created, uint256 '0' as eth_minted, uint256 '0' as eth_burned, sum(if("from" = 0x0000000000000000000000000000000000000000 and "to" <> 0x0000000000000000000000000000000000000000, value, uint256 '0')) as gno_minted, sum(if("from" <> 0x0000000000000000000000000000000000000000 and "to" = 0x0000000000000000000000000000000000000000, value, uint256 '0')) as gno_burnedfrom erc20_gnosis.evt_Transferwhere contract_address in (select contract_address from realt where chain = 'gnosis')group by 1, 2)-- MAINselect