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
| Parameter | Type | Description |
|---|---|---|
txHash | unknown | Value to check |
family? | ChainFamily | Optional 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