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
| Field | Type | Description |
|---|---|---|
number | UInt64! non-null scalar | The sequential block number in the blockchain. |
hash | String! non-null scalar | The unique cryptographic hash identifier for this block. |
confirmations | UInt64! non-null scalar | The number of blocks confirmed after this block. |
timestamp | UInt64! non-null scalar | Unix timestamp of when the block was mined. |
transactionCount | Int! non-null scalar | Total number of transactions contained in this block. |
gasUsed | UInt64! non-null scalar | Total gas consumed by all transactions in the block. |
gasLimit | UInt64! non-null scalar | Maximum gas allowed for transactions in this block. |
size | UInt64! non-null scalar | The block size in bytes. |
difficulty | UInt256! non-null scalar | Mining difficulty level for this block. |
transactions | BlockTransactionList! non-null object | An 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.
| Argument | Type | Description |
|---|---|---|
first | Int = 10 scalar | Maximum number of transactions to retrieve per page. Maximum value is 100. |
skip | Int = 0 scalar | Number of transactions to bypass before assembling the page. Set to the first value from the previous page for offset pagination. |
where | BlockTransactionFilter input | Specifies subsets of transaction data within a block to be retrieved. |
orderBy | TransactionOrderBy enum | Sets how the list of transactions is ordered. |
orderDirection | Ordering enum | Sets the direction in which the list of transactions is ordered. |
Returned By
block query
Member Of
BlockList object ● Transaction object