Query editor
with incription_detail as (select block_time,block_number,from_utf8(data) as decode_data,"from" as creator,to as owner,hash as tx_hash,index as tx_indexfrom ethereum.transactionswhere success = trueand value = 0and block_time >= timestamp '2023-06-10'and length(data) > 0and bytearray_starts_with(data, 0x646174613a) -- which begin with "data:"-- order by block_time desc),erc20_token_data as (select t.block_time,t.tx_hash,t.tx_index,t.creator,t.owner,tbl.data_json,t.decode_datafrom (select split(replace(replace(decode_data, 'data:,', ''), '}{', '}}{{'), '}{') as arr_json, *from incription_detailwhere decode_data like '%{"p":"%' -- erc-20 token) tcross join unnest(arr_json) as tbl(data_json)),token_detail_parsed as (select block_time,tx_hash,tx_index,creator,owner,json_value(data_json, 'lax $.p' returning varchar) as protocol,json_value(data_json, 'lax $.op' returning varchar) as operation,json_value(data_json, 'lax $.tick' returning varchar) as token_symbol,json_value(data_json, 'lax $.id' returning bigint) as mint_id,json_value(data_json, 'lax $.id' returning varchar) as mint_id_char,json_value(data_json, 'lax $.amt' returning bigint) as mint_amount,json_value(data_json, 'lax $.lim' returning bigint) as amount_limit,json_value(data_json, 'lax $.max' returning bigint) as max_amount,data_jsonfrom erc20_token_datawhere regexp_like(data_json, '"id":"\d+"')),token_detail_parsed_row_num as (select block_time,tx_hash,tx_index,creator,owner,protocol,operation,