SELECT
DATE_TRUNC('{{period}}',tr.block_timestamp) as date,
COUNT(DISTINCT tr.TX_HASH) as number_transactions,
COUNT(DISTINCT tr.TX_SIGNER) as users,
SUM(TRANSACTION_FEE)/POW(10,24) as transaction_fees,
tr.tx:actions[0]:FunctionCall:method_name as label
FROM near.core.fact_transactions tr
WHERE tx_receiver = 'zomland.near'
AND date >= '2022-05-15'
GROUP BY date, label