Skip to content

@ecp.eth/sdk


@ecp.eth/sdk / core / isZeroHex

Function: isZeroHex()

function isZeroHex(hex): boolean;

Defined in: packages/sdk/src/core/utils.ts:18

Check if a hex string is zero

Parameters

hex

`0x${string}`

The hex string to check

Returns

boolean

True if the hex string is zero, false otherwise