Query editor
--from: 0xTayasawith eth_running_wallet_balances as(with base_data as(with months as -- this create a time series to record transfer event(SELECT monthfrom unnest(sequence(date('2021-03-01'),date(NOW()),interval '1' month)) as tbl(month)),all_wallets as(selectdistinct wallet -- this capture sender and receiver of NFTsfrom(select"from" as walletFROM erc1155_ethereum.evt_TransferSingleWHERE contract_address = 0x76BE3b62873462d2142405439777e971754E8E77union allselect"to" as walletFROM erc1155_ethereum.evt_TransferSingleWHERE contract_address = 0x76BE3b62873462d2142405439777e971754E8E77union allselect"from" as walletfrom erc1155_ethereum.evt_TransferBatchwhere contract_address=0x76BE3b62873462d2142405439777e971754E8E77union allselect"to" as walletfrom erc1155_ethereum.evt_TransferBatchwhere contract_address=0x76BE3b62873462d2142405439777e971754E8E77)distinct_wallets)selectmonth,walletfrommonthsfull outer join all_wallets on true),aggregated_transfers as(with transfers as((SELECTdate_trunc('month',evt_block_time) as month,"to" as wallet,cast(value as decimal) as valueFROM erc1155_ethereum.evt_TransferSingleWHERE contract_address = 0x76BE3b62873462d2142405439777e971754E8E77)union all(SELECTdate_trunc('month',evt_block_time) as month,"from" as wallet,-cast(value as decimal) as valueFROM erc1155_ethereum.evt_TransferSingleWHERE contract_address = 0x76BE3b62873462d2142405439777e971754E8E77)