Skip to main content

Block

The Block object represents a single blockchain block and contains all data pertaining to the block and its transactions.

Schema Definition

type Block {
number: UInt64!
hash: String!
confirmations: UInt64!
timestamp: UInt64!
transactionCount: Int!
gasUsed: UInt64!
gasLimit: UInt64!
size: UInt64!
difficulty: UInt256!
transactions(
first: Int = 10
skip: Int = 0
where: BlockTransactionFilter
orderBy: TransactionOrderBy
orderDirection: Ordering
): BlockTransactionList!
}

Fields

FieldTypeDescription
numberUInt64! non-null scalarThe sequential block number in the blockchain.
hashString! non-null scalarThe unique cryptographic hash identifier for this block.
confirmationsUInt64! non-null scalarThe number of blocks confirmed after this block.
timestampUInt64! non-null scalarUnix timestamp of when the block was mined.
transactionCountInt! non-null scalarTotal number of transactions contained in this block.
gasUsedUInt64! non-null scalarTotal gas consumed by all transactions in the block.
gasLimitUInt64! non-null scalarMaximum gas allowed for transactions in this block.
sizeUInt64! non-null scalarThe block size in bytes.
difficultyUInt256! non-null scalarMining difficulty level for this block.
transactionsBlockTransactionList! non-null objectAn array of BlockTransaction objects representing transactions included in this block.

Arguments

These arguments control how transactions are retrieved when querying the transactions field which returns a BlockTransactionList object.

ArgumentTypeDescription
firstInt = 10 scalarMaximum number of transactions to retrieve per page. Maximum value is 100.
skipInt = 0 scalarNumber of transactions to bypass before assembling the page. Set to the first value from the previous page for offset pagination.
whereBlockTransactionFilter inputSpecifies subsets of transaction data within a block to be retrieved.
orderByTransactionOrderBy enumSets how the list of transactions is ordered.
orderDirectionOrdering enumSets the direction in which the list of transactions is ordered.

Returned By

block query

Member Of

BlockList object ● Transaction object