Query editor
-- One row per token leg of a Solana-source CCIP send, USD-priced daily.-- Source: chainlink_solana.ccip_router_call_ccip_send (the evt_ccipmessagesent table is-- EMPTY on Dune — Anchor event decoding gap — so the instruction call is the source).-- Quirks vs EVM: token_amounts elements are PLAIN JSON objects (cast array(json), no-- double-decode), and mints are wrapped as "PublicKey(<base58>)". Pricing joins-- prices.usd_daily via frombase58(mint).SELECT'solana' AS chain,c.call_block_date AS block_date,c.call_tx_id AS tx_id,cast(c.dest_chain_selector AS varchar) AS dest_chain_selector,regexp_extract(json_extract_scalar(t, '$.SVMTokenAmount.token'), 'PublicKey\((.*)\)', 1) AS mint,coalesce(p.symbol, 'UNPRICED') AS symbol,try_cast(json_extract_scalar(t, '$.SVMTokenAmount.amount') AS double) AS raw_amount,try_cast(json_extract_scalar(t, '$.SVMTokenAmount.amount') AS double) / pow(10, p.decimals) * p.price AS usd_valueFROM chainlink_solana.ccip_router_call_ccip_send cCROSS JOIN UNNEST(cast(json_extract(c.message, '$.SVM2AnyMessage.token_amounts') AS array(json))) AS x(t)LEFT JOIN prices.usd_daily pON p.blockchain = 'solana'AND p.contract_address = frombase58(regexp_extract(json_extract_scalar(t, '$.SVMTokenAmount.token'), 'PublicKey\((.*)\)', 1))AND p.day = c.call_block_date