Pinax Logo/Datasets
PolygonBlocks

Column Descriptions

for polygon.blocks

37 rows
NameTypeDescription
parent_hashTEXTHash of the parent block
receipts_rootTEXTMerkle root of the transaction receipts in the block
difficultyNUMBERDifficulty of the block
detail_levelTEXTDetail level of the block data
hashTEXTHash of the block
gas_limitNUMBERGas limit of the block
transactions_rootTEXTMerkle root of the transactions in the block
minerTEXTAddress of the miner who mined the block
total_balance_changesNUMBERTotal number of balance changes in the block
dateDATEDate of the block
numberNUMBERBlock number
blob_gas_usedNUMBERBlob gas used by all blob transactions in the block
logs_bloomTEXTBloom filter for the logs in the block
nonceNUMBERNonce of the block
ommers_hashTEXTHash of the ommers (uncles) of the block
timeTIMESTAMP_NTZTimestamp of the block
extra_data_utf8TEXTExtra data included in the block header, interpreted as UTF-8
withdrawals_rootTEXTMerkle root of the withdrawals in the block
blob_transactionsARRAYNumber of blob transactions in the block
gas_usedNUMBERGas used by all transactions in the block
total_transactionsNUMBERTotal number of transactions in the block
state_rootTEXTMerkle root of the state trie after the block was processed
mix_hashTEXTMix hash of the block
detail_level_codeNUMBERNumeric code representing the detail level of the block data
base_fee_per_gasTEXTBase fee per gas of the block
blob_gas_priceNUMBERBlob gas price of the block
successful_transactionsNUMBERNumber of successful transactions in the block
failed_transactionsNUMBERNumber of failed transactions in the block
excess_blob_gasNUMBERExcess blob gas of the block
total_difficultyNUMBERTotal difficulty of the chain up to this block
extra_dataTEXTExtra data included in the block header
blob_hashesARRAYArray of hashes of the blobs in the block
total_withdrawalsNUMBERTotal number of withdrawals in the block
total_blob_transactionsNUMBERTotal number of blob transactions up to this block
parent_beacon_rootTEXTRoot of the parent beacon block
total_blobsNUMBERTotal number of blobs up to this block
sizeNUMBERSize of the block in bytes

Sample Queries

Average Gas Used Per Block Daily
Calculates the average gas used per block for each day, providing insight into daily network activity.
SELECT
  date,
  AVG(gas_used) AS avg_gas_used
FROM
  polygon.blocks
GROUP BY
  date
ORDER BY
  date;
Top 10 Miners by Block Count
Identifies the top 10 miners who have produced the most blocks, showing the most active block producers on the network.
SELECT
  miner,
  COUNT(*) AS block_count
FROM
  polygon.blocks
GROUP BY
  miner
ORDER BY
  block_count DESC
LIMIT
  10;
Blocks with Higher Than Average Gas Limit
Retrieves information about blocks that have a gas limit above the overall average gas limit, which might indicate blocks with more complex transactions.
SELECT
  time,
  number,
  gas_limit
FROM
  polygon.blocks
WHERE
  gas_limit > (
    SELECT
      AVG(gas_limit)
    FROM
      polygon.blocks
  )
ORDER BY
  gas_limit DESC
LIMIT
  100;