Query editor
SELECT block_time, blockchain, amount_usd, "user", evm_wallet, tx_hash FROM (-- wk-px-15: Cove (Solana app; EVM trades routed through Relay)-- Solana trades : USDC fee to Cove fee wallet in the same tx as a swap; valued at the USDC entering/leaving the route-- (all slices of split routes; largest leg if no USDC at either edge); user = fee payer-- EVM buys : Cove fee tx on Solana carries a Relay deposit id; the EVM fill whose calldata ends with that id-- gives the chain. Volume = the USDC deposited on Solana (exact trade input). User = Solana payer-- EVM sells : tx sent by one of Cove's 3 gas sponsors that contains a swap. Volume = swap's stablecoin output,-- taken as the Relay deposit / 0.9984 (router fee), decimals by deposit token; Dune last leg if no stablecoin deposit. User = Solana payer of that wallet's buys, else the Solana recipient of the Relay payout (memo = request id), else the EVM wallet-- evm_wallet : the user's EVM wallet on EVM rows (buy: wallet the Relay fill delivered to; sell: wallet the sponsor transacted for); NULL on Solana rows-- Excluded : withdrawals (no swap on either side), sponsored bridge-backs without a swap, approvals-- Verified on week of 2026-10-26: 7,606/7,615 sponsored deposits paid out on Solana; 98.5% to Cove fee payersWITHfee AS (SELECT tx_id, max(from_owner) AS payer, min(block_time) AS btFROM tokens_solana.transfersWHERE to_owner = '4iBbavcJ5jV3Z6BE6zfxzNQaT7fwZMpFwz21nxjtQAKH' AND token_mint_address = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' AND amount > 0 AND from_owner <> '4iBbavcJ5jV3Z6BE6zfxzNQaT7fwZMpFwz21nxjtQAKH'AND block_time >= TIMESTAMP '2026-11-16 00:00:00' AND block_time < TIMESTAMP '2026-11-23 00:00:00'GROUP BY 1),solLegs AS (SELECT t.tx_id, t.block_time, t.amount_usd, f.payer,t.token_sold_mint_address AS sm, t.token_bought_mint_address AS bm, t.token_sold_amount AS sa, t.token_bought_amount AS ba,t.outer_instruction_index * 100000 + COALESCE(t.inner_instruction_index, -1) AS ordFROM dex_solana.trades tJOIN fee f ON t.tx_id = f.tx_idWHERE t.block_time >= TIMESTAMP '2026-11-16 00:00:00' AND t.block_time < TIMESTAMP '2026-11-23 00:00:00'),solEdge AS (SELECT l.*,first_value(sm) OVER (PARTITION BY tx_id ORDER BY ord ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS first_sold,last_value(bm) OVER (PARTITION BY tx_id ORDER BY ord ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS last_boughtFROM solLegs l),-- one row per Cove Solana trade, valued at the USDC that enters (buy) or leaves (sell) the route.-- Counts every slice of a split route and does not depend on Dune pricing the memecoin side.-- Routes with no USDC at either edge fall back to the largest priced leg.solTrades AS (SELECT tx_id AS tx_hash, max(block_time) AS block_time, 'solana' AS blockchain, max(payer) AS user,CASEWHEN max(first_sold) = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' THEN sum(CASE WHEN sm = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' THEN sa END)WHEN max(last_bought) = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' THEN sum(CASE WHEN bm = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' THEN ba END)ELSE max(amount_usd)END AS amount_usd,1 AS rnFROM solEdgeGROUP BY tx_id),dep AS (SELECT f.tx_id, f.payer, f.bt,from_big_endian_64(reverse(varbinary_substring(ic.data, 9, 8))) / 1e6 AS dep_usd,varbinary_substring(ic.data, varbinary_length(ic.data) - 31, 32) AS ridFROM solana.instruction_calls icJOIN fee f ON ic.tx_id = f.tx_idWHERE ic.executing_account = '99vQwtBwYtrqqD9YSXbdum3KBdxPAVxYTaQ3cfnJSrN2' AND ic.block_time >= TIMESTAMP '2026-11-16 00:00:00' AND ic.block_time < TIMESTAMP '2026-11-23 00:00:00'),fills AS (SELECT 'abstract' AS chain, hash, varbinary_substring(data, varbinary_length(data) - 31, 32) AS tail, varbinary_substring(data, 5 + 96 + 12, 20) AS walletFROM abstract.transactionsWHERE block_time >= TIMESTAMP '2026-11-16 00:00:00' AND block_time < TIMESTAMP '2026-11-23 00:00:00' + INTERVAL '15' minuteAND "to" IN (0x5567954cd026cebfe486062cb75848e0f1c12e58, 0xccc88a9d1b4ed6b0eaba998850414b24f1c315be) AND varbinary_substring(data, 1, 4) = 0x0a2b8f36 AND varbinary_length(data) >= 36