stack

Home > @infiniteobjects/core-library > Assert > isEthereumAddress

Assert.isEthereumAddress() method

Checks if the given value is a valid Ethereum Address string using basic regex. Does not validate address checksums.

Signature:

static isEthereumAddress(value: unknown): value is string;

Parameters

Parameter Type Description
value unknown  

Returns:

value is string