Query editor
select function_selector,case function_selectorwhen 0x70a08231 then 'balanceOf'when 0xa9059cbb then 'transfer'when 0x23b872dd then 'transferFrom'when 0x095ea7b3 then 'approve'when 0x2e1a7d4d then 'withdraw'when 0xd0e30db0 then 'deposit'else 'unknown'end as functionName,count(function_selector) as countOf from(select bytearray_substring(input, 1, 4) as function_selector from ethereum.traceswhere length(input) > 4 and block_time > (NOW() - INTERVAL '774' DAY)and to = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2union allselect bytearray_substring(data, 1, 4) as function_selector from ethereum.transactionswhere length(data) > 4 and block_time > (NOW() - INTERVAL '774' DAY)and to = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2)group by function_selectororder by countOf desc