Query editor
-- 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 0x6b4d5e9ec2acea23d4110f4803da99e25443c5df--SELECT * FROM balancer_v2_ethereum.Vault_evt_Swap WHERE poolId ={{PoolId}}-- SELECT * FROM dex.trades where tx_hash = 0x91640cd9c27a076b1294b4b5d3db4ccfd6bd1833dcd056d1d3d2bbb0a398a684 and token_bought_address=0x6b4d5e9ec2acea23d4110f4803da99e25443c5df and token_sold_address =0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48WITH swaps AS(SELECTevt_tx_hash as hash,evt_block_time,tokenOut as token_bought_address_,tokenIn as token_sold_address_FROM balancer_v2_ethereum.Vault_evt_Swap WHERE poolId = {{PoolId}}UNION ALLSELECTevt_tx_hash as hash,evt_block_time,tokenOut as token_bought_address_,tokenIn as token_sold_address_FROM balancer_v2_arbitrum.Vault_evt_Swap WHERE poolId = {{PoolId}}UNION ALLSELECTevt_tx_hash as hash,evt_block_time,tokenOut as token_bought_address_,tokenIn as token_sold_address_FROM balancer_v2_polygon.Vault_evt_Swap WHERE poolId = {{PoolId}}UNION ALLSELECTevt_tx_hash as hash,evt_block_time,tokenOut as token_bought_address_,tokenIn as token_sold_address_FROM balancer_v2_bnb.Vault_evt_Swap WHERE poolId = {{PoolId}}UNION ALLSELECTevt_tx_hash as hash,evt_block_time,tokenOut as token_bought_address_,tokenIn as token_sold_address_FROM balancer_v2_optimism.Vault_evt_Swap WHERE poolId = {{PoolId}}UNION ALLSELECTevt_tx_hash as hash,evt_block_time,tokenOut as token_bought_address_,tokenIn as token_sold_address_FROM balancer_v2_avalanche_c.Vault_evt_Swap WHERE poolId = {{PoolId}})SELECTevt_block_time,tx_from as address,amount_usd,COALESCE(token_bought_symbol, '') as token_bought_symbol,COALESCE(token_sold_symbol, '') as token_sold_symbol,token_bought_amount,token_sold_amount,blockchain,token_bought_address,token_sold_address,