Skip to main content

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

ArgumentTypeDescription
numberBlock number (height) to look up.
hash
BlockHash scalar
Block hash to look up.

Return Type

TypeDescription
Block object
A block containing transactions and metadata. Blocks are the fundamental unit of the blockchain, each building on the previous one.