Query editor
--Error: Query is too long for wand tools.--Try shortening query to try again./* Error: Query is too long for wand tools. *//* Try shortening query to try again. *//* This query used incompatible data types from Dune SQL alpha and may need to be updated. *//* More details can be found on https://dune.com/docs/query/dunesql-changes/ */WITH base_data AS (SELECTevt_block_time AS block_time,evt_block_number AS block_number,orderHash AS order_hash,recipient,consideration,offer,zoneFROM seaport_ethereum.Seaport_evt_OrderFulfilledWHEREzone IN (0xf397619df7bfd4d1657ea9bdd9df7ff888731a11, 0x9b814233894cd227f561b78cc65891aa55c62ad2, 0x004c00500000ad104d7dbd00e3ae0a5c00560c00, 0x110b2b128a9ed1be5ef3232d8e4e41640df5c2cd, 0x0000000000d80cfcb8dfcd8b2c4fd9c813482938)AND evt_block_time BETWEEN DATE_TRUNC('day', CURRENT_TIMESTAMP - INTERVAL '3' month) AND DATE_TRUNC('day', CURRENT_TIMESTAMP)), considerations_and_offers AS (SELECTblock_time,block_number,order_hash,zone,recipient,CASE JSON_EXTRACT_SCALAR(consideration_item, '$.itemType')WHEN '0'THEN 'ETH'WHEN '1'THEN 'erc20'WHEN '2'THEN 'erc721'WHEN '3'THEN 'erc1155'END AS token_standard,JSON_EXTRACT_SCALAR(consideration_item, '$.token') AS token_address,JSON_EXTRACT_SCALAR(consideration_item, '$.amount') AS amountFROM (SELECTblock_time,block_number,order_hash,zone,recipient,consideration_itemFROM base_dataCROSS JOIN UNNEST(consideration) AS t(consideration_item))WHERENOT JSON_EXTRACT_SCALAR(consideration_item, '$.itemType') IN ('2', '3')AND NOT JSON_EXTRACT_SCALAR(consideration_item, '$.recipient') IN (0x8de9c5a032463c561423387a9648c5c7bcc5bc90 /* OpenSea Fees */, 0x34ba0f2379bf9b81d09f7259892e26a8b0885095 /* OpenSea Fees 2 */, 0x0000a26b00c1f0df003000390027140000faa719 /* OpenSea Fees 3 */)UNION ALLSELECTblock_time,block_number,order_hash,zone,recipient,CASE JSON_EXTRACT_SCALAR(offer_item, '$.itemType')