jackguyNEAR Contract Activity by Contract Type
Updated 2023-06-16
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
›
⌄
-- forked from NEAR Labels 1 @ https://flipsidecrypto.xyz/edit/queries/8e4b7b6b-f3d0-4cf4-80fd-5f816a737ddd
SELECT
--project_name,
LABEL_TYPE,
count(DISTINCT tx_hash) as transactions,
count(DISTINCT tx_signer) as users,
sum(transaction_fee / power(10, 24)) as gas_usd,
count(DISTINCT tx_hash) / count(DISTINCT tx_signer) as avg_txs_per_user
FROM near.core.fact_transactions
LEFT outer join near.core.dim_address_labels
on TX_RECEIVER = ADDRESS
where block_timestamp > current_date - {{ past_days }}
and tx_status like 'Success'
and not blockchain is NULL
GROUP BY 1
ORDER BY 4 DESC
--LIMIT 100
Run a query to Download Data