Query editor
WITH external_transfers AS (SELECTblock_time,value / 1e18 AS bnb_amountFROM bnb.transactionsWHERE "to" = from_hex('0xCABDd520EeDC6736F4C057Cba275673d74766A6b')AND value > 0),internal_transfers AS (SELECTblock_time,value / 1e18 AS bnb_amountFROM bnb.tracesWHERE "to" = from_hex('0xCABDd520EeDC6736F4C057Cba275673d74766A6b')AND value > 0AND success = TRUE-- exclude the root call so we don't double-count the external txAND cardinality(trace_address) > 0),all_incoming AS (SELECT * FROM external_transfersUNION ALLSELECT * FROM internal_transfers)SELECTDATE_TRUNC('month', block_time) AS month,COUNT(*) AS tx_count,SUM(bnb_amount) AS total_bnb_receivedFROM all_incomingGROUP BY 1;