Query editor
with price_usd as(SELECT priceFROM prices.usd where symbol='MATIC' and blockchain='polygon'order by minute desc limit 1)SELECTsum(gas_used * gas_price / 1e18) "matic 消耗数量",(select max(price) from price_usd) * sum(gas_used * gas_price / 1e18) "matic 消耗费用(USD)"FROMpolygon.transactionsWHEREblock_time > TRY_CAST('2023-08-01' AS DATE)AND data = 0x646174613a2c7b2270223a227072632d3230222c226f70223a226d696e74222c227469636b223a22706f6c73222c22616d74223a22313030303030303030227dAND "from" = "to"