Query editor
withtraces as (select*, substr(input, 1, 4) as selector, row_number() over(order by trace_address) as rnfrom ethereum.traceswheretrueand (true-- and tx_hash = 0x5b905a84a3e81c2c905205e4fe309ac05f811b0f133c045eee9b09d5ce635df1-- and block_time = timestamp '2024-10-30 16:48:11'-- and trace_address = array[2, 0] -- 0x068bcd8d-- -- and substr(input, 1, 4) = 0x068bcd8dand tx_hash = 0xfdb8e90357f0d5dc96388ba9f1ad5ebd44c7c5be62221443f66edff8e9cfb73aand block_time = timestamp '2021-02-26 17:25:01'and trace_address = array[0, 0, 0, 1] -- 0xe6a43905-- and substr(input, 1, 4) = 0xe6a43905)), signatures as (select id as selector, signature, abifrom abi.signatureswhere id in (select selector from traces))select *, try(decode_evm_function_call(abi, rpad(input, 160000, 0x00), rpad(output, 16000, 0x00))) as decodedfrom tracesjoin signatures using(selector)-- where rn = 5order by rn