Pinax Logo/Datasets
BNB Smart ChainBlocks

Column Descriptions

for bsc.blocks

39 rows
NameTypeDescription
gas_limitNUMBER
dateDATE
blob_gas_priceNUMBER
blob_hashesARRAY
receipts_rootTEXT
blob_gas_usedNUMBER
extra_data_utf8TEXT
gas_usedNUMBER
parent_hashTEXT
total_difficultyNUMBER
total_withdrawalsNUMBER
blob_transactionsARRAY
base_fee_per_gasTEXT
successful_transactionsNUMBER
total_balance_changesNUMBER
detail_level_codeNUMBER
difficultyNUMBER
mix_hashTEXT
logs_bloomTEXT
nonceNUMBER
total_blobsNUMBER
total_blob_transactionsNUMBER
numberNUMBER
withdrawals_rootTEXT
excess_blob_gasNUMBER
detail_levelTEXT
total_difficulty_hexTEXT
blob_gas_price_hexTEXT
state_rootTEXT
extra_dataTEXT
sizeNUMBER
hashTEXT
transactions_rootTEXT
ommers_hashTEXT
total_transactionsNUMBER
failed_transactionsNUMBER
timeTIMESTAMP_NTZ
minerTEXT
parent_beacon_rootTEXT

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
  bsc.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
  bsc.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
  bsc.blocks
WHERE
  gas_limit > (
    SELECT
      AVG(gas_limit)
    FROM
      bsc.blocks
  )
ORDER BY
  gas_limit DESC
LIMIT
  100;