block
Look up a block by number or hash.
Provide either number or hash, not both. Returns null if the block doesn't exist.
Schema Definition
block(
number: BlockNumber
hash: BlockHash
): Block
Arguments
| Argument | Type | Description |
|---|---|---|
number | BlockNumber scalar | Block number (height) to look up. |
hash | BlockHash scalar | Block hash to look up. |
Return Type
| Type | Description |
|---|---|
Block object | A block containing transactions and metadata. Blocks are the fundamental unit of the blockchain, each building on the previous one. |