2844Total contracts deployed on NEAR
Updated 2022-10-05Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
›
⌄
with Deploy_Contract as (
select
tx_hash,
block_timestamp
from near.core.fact_actions_events
where action_name = 'DeployContract'
),
Tx_contract as (
select A.tx_receiver,
B.block_timestamp
from near.core.fact_transactions A
join Deploy_Contract B on A.tx_hash=B.tx_hash
and a.block_timestamp=b.block_timestamp
),
Smart_Contracts as (
select (tx_receiver),
block_timestamp,
row_number() over(partition by tx_receiver order by block_timestamp) as tx_receiver_Row
FROM Tx_contract
qualify (tx_receiver_Row=1)
)
select
count(distinct tx_receiver) as number_of_contracts
from Smart_Contracts
Run a query to Download Data