Query editor
SELECTblockchain,CASEWHEN blockchain = 'solana' THEN to_base58(address)ELSE concat('0x', lower(to_hex(address)))END AS address,name,category,label_typeFROM labels.addressesWHERE blockchain = '{{chain}}'AND ('{{category}}' = ''OR ('{{category}}' = '__DEFITAXES_NULL_CATEGORY__' AND category IS NULL)OR category = '{{category}}')-- Prefixes shard the underlying bytes, not the displayed chain-native address.AND ('{{address_prefix}}' = '' OR lower(to_hex(address)) LIKE concat('{{address_prefix}}', '%'))AND ('{{include_behavior}}' = '1' OR coalesce(label_type, '') NOT IN ('usage', 'persona', 'personas'))ORDER BY address