The plume.transactions table contains all transactions in the Plume blockchain.

Table Schema

Column NameData TypeDescription
hashstringTransaction hash
noncedecimal(38,0)Transaction nonce
block_hashstringBlock hash
block_numberdecimal(38,0)Block number
transaction_indexdecimal(38,0)Transaction index in block
from_addressstringSender address
to_addressstringRecipient address
valuedecimal(38,0)Value in wei
gasdecimal(38,0)Gas limit
gas_pricedecimal(38,0)Gas price in wei
inputstringTransaction input data
receipt_cumulative_gas_useddecimal(38,0)Cumulative gas used
receipt_gas_useddecimal(38,0)Gas used
receipt_contract_addressstringContract address if created
receipt_rootstringReceipt root
receipt_statusdecimal(38,0)Transaction status
block_timestamptimestampBlock timestamp
max_fee_per_gasdecimal(38,0)Max fee per gas
max_priority_fee_per_gasdecimal(38,0)Max priority fee per gas
transaction_typedecimal(38,0)Transaction type

Sample Query

-- Get the top gas spenders in the last 24 hours
SELECT 
    from_address,
    COUNT(*) as tx_count,
    SUM(receipt_gas_used * gas_price) / 1e18 as total_gas_cost_eth
FROM plume.transactions
WHERE block_timestamp >= NOW() - INTERVAL '24' HOUR
GROUP BY from_address
ORDER BY total_gas_cost_eth DESC
LIMIT 10;