Query editor
/* -----------------------------------------------------------------------------Top USDT holders on Tron (LIMIT set to 10,000 below)Token: USDT-TRC20 TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t, 6 decimalsSource: tokens_tron.transfers (Tron is not EVM — no erc20_ethereum equivalent)Unlabeled entity name / category are returned as 'NA', not NULL.Engine: DuneSQL (Trino)METHODOLOGY CAVEAT — READ BEFORE CITINGTether's contract mints and burns via issue() / redeem(), which emit Issue /Redeem events, NOT Transfer events. A Transfer-derived balance therefore doesnot see issuance. Consequences:* The Tether treasury address nets negative and is dropped by HAVING > 0,so it will be absent from this ranking.* total_usdt_circulating_tron here = sum of positive Transfer-derivedbalances. It approximates circulating supply excluding treasury holdings,and will NOT match Tether's reported authorised supply on Tron.This differs from USDC/USDS, where mints and burns DO emit Transfer eventsfrom/to the zero address and the same method reconciles cleanly. Cross-checkagainst stablecoins_tron.balances before using the Tron denominator.ADDRESS FORMATSaddress = 0x hex VARBINARY (Dune internal, 0x41-prefixed)address_base58 = T... base58, the form Tronscan uses. Use this for lookups.LABELSlabels.owner_addresses / owner_details are joined on blockchain = 'tron'.Coverage on Tron is far thinner than on Ethereum — expect mostly 'NA'.COST: full-history scan of USDT transfers on Tron. No date filter is possiblebecause balances need the complete history.----------------------------------------------------------------------------- */WITH flows AS (SELECT"to" AS address,to_varchar AS address_base58,CAST(amount_raw AS decimal(38,0)) AS amountFROM tokens_tron.transfersWHERE contract_address_varchar = 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t' -- USDTUNION ALLSELECT"from" AS address,from_varchar AS address_base58,-CAST(amount_raw AS decimal(38,0)) AS amountFROM tokens_tron.transfersWHERE contract_address_varchar = 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t'),balances AS (SELECTaddress,MAX(address_base58) AS address_base58,SUM(amount) / 1e6 AS balance -- USDT has 6 decimalsFROM flowsWHERE address_base58 != 'T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb' -- Tron zero/black-hole addressGROUP BY 1HAVING SUM(amount) > 0),