Query editor
with txs as (selectblock_time,bytearray_substring(input, 1, 4) as selector,tx_hash,"from" as sender,if(cardinality(trace_address) > 0, 'trace', 'tx') as tagfrom {{chain}}.traceswhere block_time > now() - interval '{{dt}}' dayand to = {{contract}}),tx_stat as (selectselector,tag,count(distinct sender) as user_cnt,count(1) as cnt,max(block_time) as block_time,max(tx_hash) as sample_txfrom txsgroup by selector, tag)selectt1.block_time,t1.tag,t1.cnt,t1.user_cnt,t1.selector,t3.signature,get_href(get_chain_explorer_tx_hash('{{chain}}', t1.sample_tx), cast(t1.sample_tx as VARCHAR)) as samplefromtx_stat t1left join abi.signatures t3on t1.selector = t3.idorder by t1.cnt desc