Query editor
WITH _ AS (SELECT 'This is how you can use Custodial wallets and Sybil walletsmat views to filter only real wallets for your queries.Source query of Sybil Wallets:https://dune.com/queries/5206440Source query of Custodial Wallets:https://dune.com/queries/5032986made by @okhlopkovfor TON Data Hub https://t.me/tondatahub'), ADDRESSES_OF_REAL_USERS AS (SELECT A.*FROM ton.accounts ALEFT JOIN dune.ton_foundation.result_sybil_wallets AS SYBILSON A.address = SYBILS.addressLEFT JOIN dune.ton_foundation.result_custodial_wallets AS CUSTSON A.address = CUSTS.addressLEFT JOIN dune.ton_foundation.dataset_labels AS LABELSON A.address = LABELS.addressWHERE 1=1-- filter masterchain addressesAND substr(A.address, 1, 3) != '-1:'-- only accounts with wallet or multisig interfaceAND cardinality(FILTER(A.interfaces, i->regexp_like(i, '^(wallet_|multisig_).*') )) > 0-- not a sybilAND SYBILS.address IS NULL-- not a custodial walletAND CUSTS.address IS NULL-- not labelled (we label only orgs)AND LABELS.address IS NULL)SELECT interfaces, COUNT(*) addressesFROM ADDRESSES_OF_REAL_USERSGROUP BY 1ORDER BY 2 DESC