Raw
mode.blocks
Description of the mode.blocks table on Dune
The data for the mode tables is hosted on Dune by the mode team in the context of Hosted blockchain integrations - a legacy integration route which only includes raw EVM data. We are working to migrate it over to the standard EVM integration.
Table description
The mode.blocks
table contains information about blocks in the mode blockchain. A block is a collection of transactions that are hashed and added to the blockchain. Each block contains a reference to the previous block, known as the parent hash, and a timestamp. The table contains information about each block, such as the block number, the block hash, the block size, the number of transactions, and the gas used.
Column Descriptions
Datatypes on Snowflake datashare are different in some cases, read more here.
Table Sample
Examples
Show the most recent blocks
SELECT
number,
hash,
size,
gas_used
FROM mode.blocks
ORDER BY number DESC
LIMIT 10
Show the number of blocks mined each day
SELECT
date_trunc('day', time) AS day,
count(distinct number)
FROM mode.blocks
GROUP BY day
ORDER BY day DESC
Show the number of transactions in each block
SELECT
number,
count(*)
FROM mode.blocks
GROUP BY 1
LIMIT 10