Table Description

The zkevm.transactions table contains information about all transactions on the zkevm blockchain. Each row represents a single transaction and includes information such as block number, hash, timestamp, sender, recipient, value, gas, gas price, and more. Transactions are the fundamental unit of interaction with the zkevm blockchain. Transactions are created by users and are used to send value, deploy smart contracts, and interact with smart contracts.

This is the raw version of this table, for decoded transaction calls, see the call tables section.

Column Descriptions

Datatypes on Snowflake datashare are different in some cases, read more here.

Table Sample

Examples

Show all transactions sent by a specific address

SELECT * 
FROM zkevm.transactions WHERE "from" = '0x50A1b5c358F8D34F0d35aA2f10742c46054E247e'

Count the number of transactions per block

SELECT 
    block_number, 
    COUNT(*)
FROM zkevm.transactions
GROUP BY 1
ORDER BY 1 DESC
LIMIT 10

Show the top 10 transactions with the highest gas price

SELECT 
    hash, 
    gas_price
FROM zkevm.transactions
ORDER BY gas_price DESC
LIMIT 10