Query editor
-- MPP attribution memo layout (per mppx SDK):-- Bytes 0..3 : magic 0xef1ed712 = keccak256("mpp")[0:4]-- Byte 4 : version (currently 0x01)-- Bytes 5..14 : server fingerprint (10 bytes)-- Bytes 15..24: client fingerprint (10 bytes, zeros if anonymous)---- Previous version matched bytes 0..4 as 0xef1ed71201 — that conflated the magic-- prefix with v1, so any future version bump (e.g. 0xef1ed71202) would stop-- counting. Fix: match only the 4-byte magic, then split version out separately-- so we can observe rollouts instead of silently dropping them.---- Users can opt out by setting a custom memo, so MPP-tagged counts are a-- representative sample, not the total.---- We read the raw TransferWithMemo log directly because we need topic3 (memo).-- topic0 is the TransferWithMemo event signature.WITH memo_logs AS (SELECTblock_date,topic1,topic2,topic3,data,CASE WHEN bytearray_substring(topic3, 1, 4) = 0xef1ed712 THEN true ELSE false END AS is_mpp,CASE WHEN bytearray_substring(topic3, 1, 4) = 0xef1ed712THEN bytearray_substring(topic3, 5, 1) END AS mpp_versionFROM tempo.logsWHERE topic0 = 0x57bc7354aa85aed339e000bccffabbc529466af35f0772c8f8ee1145927de7f0AND block_date >= DATE '2026-03-18'),daily AS (SELECTblock_date,-- All TransferWithMemoCOUNT(*) AS total_memo_transfers,SUM(CAST(bytearray_to_uint256(data) AS double) / 1e6) AS total_memo_volume,-- MPP-tagged (any version)COUNT(CASE WHEN is_mpp THEN 1 END) AS mpp_transfers,SUM(CASE WHEN is_mpp THEN CAST(bytearray_to_uint256(data) AS double) / 1e6 ELSE 0 END) AS mpp_volume,COUNT(DISTINCT CASE WHEN is_mpp THEN bytearray_substring(topic1, 13, 20) END) AS mpp_unique_senders,COUNT(DISTINCT CASE WHEN is_mpp THEN bytearray_substring(topic2, 13, 20) END) AS mpp_unique_receivers,COUNT(DISTINCT CASE WHEN is_mpp THEN bytearray_substring(topic3, 6, 10) END) AS mpp_unique_servers,COUNT(DISTINCT CASE WHEN is_mppAND bytearray_substring(topic3, 16, 10) != 0x00000000000000000000THEN bytearray_substring(topic3, 16, 10) END) AS mpp_unique_clients,-- Version breakdown (forward-compatible)COUNT(CASE WHEN is_mpp AND mpp_version = 0x01 THEN 1 END) AS mpp_v1_transfers,COUNT(CASE WHEN is_mpp AND mpp_version != 0x01 THEN 1 END) AS mpp_other_version_transfers,-- Non-MPP memoCOUNT(CASE WHEN NOT is_mpp THEN 1 END) AS other_memo_transfersFROM memo_logsGROUP BY 1