Block
A block containing transactions and metadata. Blocks are the fundamental unit of the blockchain, each building on the previous one.
Schema Definition
type Block {
number: BlockNumber!
hash: BlockHash!
timestamp: Timestamp!
transactionCount: Int!
gasUsed: BigInt!
gasLimit: BigInt!
difficulty: BigInt!
size: Int!
confirmations: Int!
transactions(
first: Int = 10
after: Cursor
where: BlockTransactionFilter
orderBy: BlockTransactionOrderBy
orderDirection: OrderDirection
): BlockTransactionList!
contractsCreated(
first: Int = 10
after: Cursor
where: ContractFilter
orderBy: ContractOrderBy
orderDirection: OrderDirection
): ContractList!
}
Fields
| Field | Type | Description |
|---|---|---|
number | Block number (height) representing the position in the blockchain. Genesis block is 0. | |
hash | Unique 256-bit hash identifying this block. | |
timestamp | Timestamp when this block was mined/validated. | |
transactionCount | Number of transactions included in this block. | |
gasUsed | Total gas consumed by all transactions in this block. | |
gasLimit | Maximum gas that could be used in this block (block gas limit). | |
difficulty | Mining difficulty for this block (relevant for pre-merge proof-of-work blocks). | |
size | Total size of the block in bytes, including all transaction data. | |
confirmations | Number of blocks that have been mined after this one. Higher confirmations indicate greater finality. | |
transactions | Transactions included in this block, paginated. | |
contractsCreated | Smart contracts that were deployed in this block, paginated. |
transactions Arguments
| Argument | Type | Description |
|---|---|---|
first | Int scalar | Maximum number of results to return (default: 10, max: 100). |
after | Cursor scalar | Cursor for pagination. Pass the endCursor from a previous query to get the next page. |
where | BlockTransactionFilter input | Filter criteria for block transactions. |
orderBy | Field to sort results by. | |
orderDirection | OrderDirection enum | Sort direction (ascending or descending). |
contractsCreated Arguments
| Argument | Type | Description |
|---|---|---|
first | Int scalar | Maximum number of results to return (default: 10, max: 100). |
after | Cursor scalar | Cursor for pagination. Pass the endCursor from a previous query to get the next page. |
where | ContractFilter input | Filter criteria for contracts. |
orderBy | ContractOrderBy enum | Field to sort results by. |
orderDirection | OrderDirection enum | Sort direction (ascending or descending). |
Returned By
block query
Member Of
BlockList object ● Contract object ● IContract interface ● NFTContract object ● Token object ● Transaction object