datavortexcomparative-lavender
Updated 2024-12-06
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
›
⌄
SELECT
tx_hash AS "contract_id", -- tx_hash is the unique identifier for the contract deployment transaction
DATE_TRUNC('day', CURRENT_TIMESTAMP) - DATE_TRUNC('day', MIN(block_timestamp)) AS "contract_age",
COUNT(DISTINCT tx_hash) AS "total_deployments"
FROM
near.core.fact_actions_events
WHERE
action_name = 'DeployContract'
AND receipt_succeeded = TRUE
AND signer_id NOT IN ('lockup.near', 'deposit.aurora', 'near')
GROUP BY
tx_hash
ORDER BY
"contract_age" DESC;
QueryRunArchived: QueryRun has been archived