Query editor
with uniqueHash AS (SELECT distinct tx_hash AS hash -- aggregate all tx hashes to use w/polygon.transactionsFROM nft.transfersWHERE(contract_address = 0xF4e9CeC411Ad8F99eaf02D5952D24c791C78E6d7 -- .SWOOSH ID contractOR contract_address = 0x851D5Fa26636dF46B6196879582324C311556b46 -- OF1 box contractOR contract_address = 0xd25805172B58a27951Cf532A94F4A035d112776a -- OF1 poster contractOR contract_address = 0x24ddE60F1E16B3e7Bd7Dc5D766e46eCB8DD1A8a9 -- OF1 TINAJ contractOR contract_address = 0x6380CcB3Ada62Ed1b13AA2b0A98fAb0C1c7F0aA3 -- OF1 (shoe) contractOR contract_address = 0x8b1201Be63ecdbed6c5d95E4a985CD0b27edAf7C -- OF1 redeemed poster contract)AND blockchain = 'polygon'AND block_date > TIMESTAMP '2022-11-06' -- Week prior to the .SWOOSH ID announcementAND block_date < TIMESTAMP '2024-03-09'), -- Cutoff date March 8, 2024gasSpent AS (SELECTsum(gas_used/1e18*gas_price) AS totalGasSpentFROM polygon.transactionsWHERE hash in (SELECT hash FROM uniqueHash) -- only pull hashes that include one of the three contract addresses)SELECT totalGasSpent FROM gasSpent