Query editor
SELECT date_format(tx.block_time, '%H:%i:%s') as block_time, get_href(get_chain_explorer_address('bitcoin',tx.input[1].script_pub_key.address), substr(tx.input[1].script_pub_key.address,1,16)) as input_address, round(1e8 * tx.fee / tx.virtual_size, 2) as sats_vbyte, round(1e8 * tx.fee) as tx_fee, round(1e8 * reduce(tx.output, 0, (s,ox) -> IF(ox.script_pub_key.address <> tx.input[1].script_pub_key.address or ox.index = 0, s + ox.value, s), s->s)) as net_commit, '|' as "/", tx.block_height, tx.index, '|' as "//", varbinary_to_integer(substr(tx.output[1].script_pub_key.hex,4+67,4)) as parent_block, varbinary_to_integer(substr(tx.output[1].script_pub_key.hex,4+71,2)) as parent_index, CASE block_height % 6WHEN 0 THEN '🔴' WHEN 1 THEN '🟠' WHEN 2 THEN '🟡'WHEN 3 THEN '🟢' WHEN 4 THEN '🔵' WHEN 5 THEN '🟣'END as block_mod, CASE varbinary_to_integer(substr(tx.output[1].script_pub_key.hex,4+67,4)) % 6WHEN 0 THEN '🔴' WHEN 1 THEN '🟠' WHEN 2 THEN '🟡'WHEN 3 THEN '🟢' WHEN 4 THEN '🔵' WHEN 5 THEN '🟣'END as parent_mod, CASE (block_height-1) % 5= bitwise_and(bitwise_right_shift(varbinary_to_integer(substr(tx.output[1].script_pub_key.hex,4+79,1)), 0), 7)WHEN true THEN '✔️'WHEN false THEN '❌'END as anchor_ok, CASE tx.output[2].script_pub_key.address = '1111111111111111111114oLvT2'WHEN true THEN 'burn'WHEN false THEN 'reward'END as pox_type, tx.output_count as outputs, tx.virtual_size as vbytes, varbinary_to_integer(substr(tx.output[1].script_pub_key.hex,4+73,4)) as key_block, varbinary_to_integer(substr(tx.output[1].script_pub_key.hex,4+77,2)) as key_index, bitwise_and(bitwise_right_shift(varbinary_to_integer(substr(tx.output[1].script_pub_key.hex,4+79,1)), 0), 7) as anchor_mod, bitwise_and(bitwise_right_shift(varbinary_to_integer(substr(tx.output[1].script_pub_key.hex,4+79,1)), 3), 31) as memo-- , to_hex(substr(tx.output[1].script_pub_key.hex,4+35,32)) as new_seed_vrf, get_href('https://explorer.hiro.so/block/0x' || to_hex(substr(tx.output[1].script_pub_key.hex,4+3,32)), to_hex(substr(tx.output[1].script_pub_key.hex,4+3,8))) as block_hash, get_href(get_chain_explorer_tx_hash('bitcoin',tx.id), to_hex(substr(tx.id,1,8))) as tx_idFROM bitcoin.transactions txWHERE tx.block_height >= 666050 -- Stacks 2.0 genesis-- WHERE tx.block_height >= 825000 -- more recentAND tx.output_count between 2 and 3AND starts_with(tx.output[1].script_pub_key.hex, 0x6a4c5058325b) -- OP_RETURN + OP_PUSHDATA1(0x50) + magic 'X2' + stx_op '['AND tx.output[tx.output_count].script_pub_key.address <> tx.input[1].script_pub_key.addressORDER BY block_height DESC, input_address, indexLIMIT 5000