Function validateTransaction
- validateTransaction(transactionObject: Record<string, unknown>, paramsSchema?: object): undefined | Error | KlayrValidationError
-
Parameters
-
transactionObject: Record<string, unknown>
-
Optional
paramsSchema: object
Returns undefined | Error | KlayrValidationError
Validates a given transaction against its' schema.
Example
Returns
undefined
, if the transaction is valid and no errors are found. Returns the Error, if any errors are discovered curing the validation.See