Pinax Logo/Datasets
PolygonTransactions

Column Descriptions

for polygon.transactions

35 rows
NameTypeDescription
blob_gas_priceNUMBERBlob gas price for the transaction
block_hashTEXTHash of the block in which the transaction was included
status_codeNUMBERNumeric code representing the status of the transaction
blob_hashesARRAYArray of hashes of the blobs in the transaction
blob_gas_usedNUMBERBlob gas used by the transaction
blob_gas_fee_capNUMBERBlob gas fee cap for the transaction
sTEXTS component of the transaction signature
block_timeTIMESTAMP_NTZTimestamp of the block in which the transaction was included
block_dateDATEDate of the block in which the transaction was included
vTEXTV component of the transaction signature
receipts_rootTEXTMerkle root of the transaction receipts in the block
toTEXTAddress of the recipient of the transaction
max_priority_fee_per_gasNUMBERMaximum priority fee per gas specified in the transaction (for EIP-1559 transactions)
dataTEXTData field of the transaction
logs_bloomTEXTBloom filter for the logs in the transaction
valueNUMBERValue transferred in the transaction (in Wei)
block_numberNUMBERBlock number in which the transaction was included
nonceNUMBERNonce of the transaction
rTEXTR component of the transaction signature
gas_priceNUMBERGas price of the transaction (in Wei)
typeTEXTType of the transaction (e.g., 'Legacy', 'EIP-1559', etc.)
indexNUMBERIndex of the transaction within the block
successBOOLEANBoolean indicating whether the transaction was successful
hashTEXTHash of the transaction
max_fee_per_gasNUMBERMaximum fee per gas specified in the transaction (for EIP-1559 transactions)
begin_ordinalNUMBERStarting ordinal of the transaction within the block
fromTEXTAddress of the sender of the transaction
gas_limitNUMBERGas limit of the transaction
statusTEXTStatus of the transaction (e.g., 'Success', 'Failure')
end_ordinalNUMBEREnding ordinal of the transaction within the block
transactions_rootTEXTMerkle root of the transactions in the block
gas_usedNUMBERGas used by the transaction
type_codeNUMBERNumeric code representing the type of the transaction
state_rootTEXTMerkle root of the state trie after the transaction was processed
cumulative_gas_usedNUMBERCumulative gas used by all transactions up to this one in the block

Sample Queries

Active Users
Active users on 2024-10-01
SELECT
  date_trunc ('minute', block_time) AS minute,
  count(distinct "from") AS user
FROM
  polygon.transactions
WHERE
  block_date = '2024-10-01'
GROUP BY
  minute
ORDER BY
  minute ASC;
Top Contracts
Top 10 contracts by transactions on 2024-10-01
SELECT
  "to" AS contract,
  count(*) AS transactions
FROM
  polygon.transactions
WHERE
  block_date = '2024-10-01'
GROUP BY
  contract
ORDER BY
  transactions DESC
LIMIT
  10;
Average Gas Used by Transaction Type
Calculates the average gas used for each transaction type, helping analyze resource consumption by different transaction types
SELECT
  type,
  AVG(gas_used) AS avg_gas_used
FROM
  polygon.transactions
GROUP BY
  type
ORDER BY
  avg_gas_used DESC;