flipside
Insights
Studio
Quests
For Chains
For Analysts
For Explorers
About
Log in
Sign up
flipside
Base - Daily and Total blocks
piper
Base - Daily and Total blocks
Updated 2023-09-24
Copy Reference
Fork
99
1
2
3
4
5
6
7
8
9
10
›
⌄
SELECT
TO_CHAR
(
BLOCK_TIMESTAMP
,
'YYYY-MM-DD'
)
AS
"Date"
,
COUNT
(
DISTINCT
BLOCK_NUMBER
)
AS
"Daily Blocks"
,
SUM
(
"Daily Blocks"
)
OVER
(
ORDER
BY
"Date"
)
AS
"Total Blocks"
FROM
base
.
core
.
fact_transactions
WHERE
status
=
'SUCCESS'
GROUP
BY
1
ORDER
BY
1
ASC
Results
Run a query to Download Data