Skip to main content

transactions

Schema: public

Description

All transactions (e.g. smart contract calls, native token transfers, etc.) on supported chains. This table includes the high-level transaction metadata standard on all transactions. If you're looking for specific contract calls, logs, etc. see the contract_calls and contract_logs tables.

Columns

Column NameData TypeDescription
idbpchar(44)The unique identifier for the transaction.
consensus_timetimestamptzThe timestamp of the transaction's consensus time.
transaction_hashtextThe unique hash of the transaction.
sendertextThe sender of the transaction aka "from".
recipienttextThe recipient of the transaction aka "to".
metric_nametextThe name of the metric associated with the transaction.
valnumericThe value associated with the transaction.
string_valtextThe string value associated with the transaction.
chaintextThe blockchain this transaction belongs to.
block_hashtextThe unique hash of the block containing the transaction.

Examples

Get hourly transaction send count for a specific address
select
time_bucket('1 hour'::interval, t.consensus_time) as time,
count(1) as val
from transactions t
where t.consensus_time > now() - '3 days'::interval
and t.sender = lower('0x339d413CCEfD986b1B3647A9cfa9CBbE70A30749')
and t.metric_name = 'transferAmount'
group by time;