Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 729 Bytes

eth-connect.ispredefinedblocknumber.md

File metadata and controls

24 lines (14 loc) · 729 Bytes

Home > eth-connect > isPredefinedBlockNumber

isPredefinedBlockNumber() function

Returns true if the provided blockNumber is 'latest', 'pending' or 'earliest

Signature:

export declare function isPredefinedBlockNumber(blockNumber: Quantity | Tag): blockNumber is Tag;

Parameters

Parameter Type Description
blockNumber Quantity | Tag The given blocknumber

Returns:

blockNumber is Tag