Skip to main content
Version: 0.96.0

Function: isSupportedTxHash()

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

Defined in: utils.ts:309

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 supported