The plume.logs table contains all event logs emitted by contracts in the Plume blockchain.

Table Schema

Column NameData TypeDescription
log_indexdecimal(38,0)Log index in transaction
transaction_hashstringTransaction hash
transaction_indexdecimal(38,0)Transaction index in block
block_hashstringBlock hash
block_numberdecimal(38,0)Block number
addressstringContract address
datastringLog data
topicsarrayLog topics
block_timestamptimestampBlock timestamp

Sample Query

-- Get the most active contracts by event count in the last 24 hours
SELECT 
    address,
    COUNT(*) as event_count
FROM plume.logs
WHERE block_timestamp >= NOW() - INTERVAL '24' HOUR
GROUP BY address
ORDER BY event_count DESC
LIMIT 10;