Validates a given transaction against its' schema.
import { validateTransaction } from '@liskhq/lisk-transactions';const validation = validateTransaction(transaction, paramsSchema);
undefined, if the transaction is valid and no errors are found. Returns the Error, if any errors are discovered curing the validation.
undefined
The transaction to validate.
The parameters schema for the transaction.
Generated using TypeDoc
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