# Type alias BlockSpecifier

BlockSpecifier: number | "genesis" | "latest" | "pending"

Specifies a block. Can be given by number, or can be given via the special strings "genesis", "latest", or "pending".

Intended to work like Web3's BlockType.

Warning: Using "pending", while allowed, is not advised, as it may lead to internally inconsistent results. Use of "latest" is safe and will not lead to inconsistent results from a single decoder call due to the decoder's caching system, but pending blocks cannot be cached under this system, which may cause inconsistencies.

- Defined in codec/lib/types.ts:915

Generated using TypeDoc