Query editor
with funds as (selectblock_time as day,'{{Chain}}',tx_hash,to as wallet_address,"from" as first_funded_by,value as amountfrom {{Chain}}.traceswhere to = ({{Wallet Address}})order by daylimit 1)selectday,concat(case when '{{Chain}}' = 'ethereum' THEN '<a href=https://etherscan.io/tx/'WHEN '{{Chain}}' = 'arbitrum' THEN '<a href=https://arbiscan.io/tx/'WHEN '{{Chain}}' = 'optimism' THEN '<a href=https://optimistic.etherscan.io/tx/'WHEN '{{Chain}}' = 'polygon' THEN '<a href=https://polygonscan.com/tx/' end, cast(tx_hash as varchar),'/overview" target="_blank" >',cast(tx_hash as varchar),'</a>') as hash,wallet_address,first_funded_byfrom funds