Skip to main content
Version: 1.14.0

Function: isSupportedTxHash()

isSupportedTxHash(txHash: unknown, family?: ChainFamily): txHash is string

Defined in: utils.ts:206

Validate a value is a txHash string in some supported chain family

Parameters​

ParameterTypeDescription
txHashunknownValue to check
family?ChainFamilyOptional chain family to validate against

Returns​

txHash is string

true if value is a valid transaction hash

Throws​

CCIPChainFamilyUnsupportedError if specified chain family is not registered (or, without family, if no family is registered)