The plume.contracts table contains information about deployed contracts in the Plume blockchain.

Table Schema

Column NameData TypeDescription
addressstringContract address
bytecodestringContract bytecode
function_sighashesarrayFunction signatures
is_erc20booleanWhether contract is ERC20
is_erc721booleanWhether contract is ERC721
is_erc1155booleanWhether contract is ERC1155
block_numberdecimal(38,0)Block number
block_timestamptimestampBlock timestamp
transaction_hashstringCreation transaction hash
creator_addressstringCreator address
created_attimestampCreation timestamp

Sample Query

-- Get the number of contracts created per day
SELECT 
    DATE_TRUNC('day', created_at) as day,
    COUNT(*) as contracts_created
FROM plume.contracts
WHERE created_at >= NOW() - INTERVAL '30' DAY
GROUP BY day
ORDER BY day;