Query editor
-- nft senders and receivers---- NFT contract address: 0xbd3531da5cf5857e7cfaa92426877b022e612cf8-- SELECT-- address-- , token_id-- , amount-- FROM (WITHsend as (SELECTdate_trunc('{{period}}', block_time) as time_space, t."from" as sender, array_agg(token_id) token_id, count(token_id) as amt_sentFROM nft.transfers tWHERE contract_address = 0xbd3531da5cf5857e7cfaa92426877b022e612cf8AND blockchain = 'ethereum'AND t."from" NOT IN (select address from ethereum.creation_traces)AND block_time >= now() - interval '12' monthGROUP BY 1, 2),receive as (SELECTdate_trunc('{{period}}', block_time) as time_space, to as receiver, array_agg(token_id) token_id, count(token_id) as amt_receivedFROM nft.transfers tWHERE t.to NOT IN (select address from ethereum.creation_traces)AND contract_address = 0xbd3531da5cf5857e7cfaa92426877b022e612cf8AND block_time >= now() - interval '12' monthGROUP BY 1, 2)SELECTCOALESCE(r.time_space, t.time_space) as time_spaced, r.receiver address, r.token_id as nft_received, t.token_id as nft_sent, array_except(r.token_id, t.token_id) as nft_holdings, r.amt_received - COALESCE(t.amt_sent, 0) as amountFROM receive rLEFT JOIN send t on t.sender = r.receiver-- ) v